#355. reopen log file by SIGHUP

This commit is contained in:
orignal 2016-02-04 13:53:38 -05:00
parent 7ca1cfab1a
commit 98d5e0b56d
3 changed files with 22 additions and 3 deletions

View file

@ -17,9 +17,9 @@ void handle_signal(int sig)
switch (sig)
{
case SIGHUP:
LogPrint(eLogInfo, "Daemon: Got SIGHUP, doing nothing");
// TODO:
break;
LogPrint(eLogInfo, "Daemon: Got SIGHUP, reopening log...");
ReopenLogFile ();
break;
case SIGABRT:
case SIGTERM:
case SIGINT: