Browse Source

do nothing upon SIGHUP for now

pull/319/head
orignal 9 years ago
parent
commit
248ae7d4d5
  1. 13
      DaemonLinux.cpp

13
DaemonLinux.cpp

@ -17,17 +17,8 @@ void handle_signal(int sig)
switch (sig) switch (sig)
{ {
case SIGHUP: case SIGHUP:
if (i2p::util::config::GetArg("daemon", 0) == 1) LogPrint(eLogInfo, "Daemon: Got SIGHUP, doing nothing");
{ // TODO:
static bool first=true;
if (first)
{
first=false;
return;
}
}
LogPrint(eLogInfo, "Daemon: Got SIGHUP, reloading config.");
i2p::util::filesystem::ReadConfigFile(i2p::util::config::mapArgs, i2p::util::config::mapMultiArgs);
break; break;
case SIGABRT: case SIGABRT:
case SIGTERM: case SIGTERM:

Loading…
Cancel
Save