Sending response to SIGNAL HEARTBEAT controller command.

This commit is contained in:
rl1987 2014-11-04 19:29:29 +02:00 committed by Nick Mathewson
parent 8c135062e5
commit bf67a60b86
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -2139,6 +2139,7 @@ process_signal(uintptr_t sig)
break;
case SIGHEARTBEAT:
log_heartbeat(time(NULL));
control_event_signal(sig);
break;
}
}