mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
#355. reopen log file by SIGHUP
This commit is contained in:
parent
7ca1cfab1a
commit
98d5e0b56d
3 changed files with 22 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue