mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Sending response to SIGNAL HEARTBEAT controller command.
This commit is contained in:
parent
8c135062e5
commit
bf67a60b86
@ -4455,6 +4455,9 @@ control_event_signal(uintptr_t signal)
|
||||
case SIGCLEARDNSCACHE:
|
||||
signal_string = "CLEARDNSCACHE";
|
||||
break;
|
||||
case SIGHEARTBEAT:
|
||||
signal_string = "HEARTBEAT";
|
||||
break;
|
||||
default:
|
||||
log_warn(LD_BUG, "Unrecognized signal %lu in control_event_signal",
|
||||
(unsigned long)signal);
|
||||
|
@ -2139,6 +2139,7 @@ process_signal(uintptr_t sig)
|
||||
break;
|
||||
case SIGHEARTBEAT:
|
||||
log_heartbeat(time(NULL));
|
||||
control_event_signal(sig);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user