Skip to content

Commit

Permalink
do nothing upon SIGHUP for now
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Jan 12, 2016
1 parent 7f08bbe commit 248ae7d
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions DaemonLinux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,8 @@ void handle_signal(int sig)
switch (sig)
{
case SIGHUP:
if (i2p::util::config::GetArg("daemon", 0) == 1)
{
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);
LogPrint(eLogInfo, "Daemon: Got SIGHUP, doing nothing");
// TODO:
break;
case SIGABRT:
case SIGTERM:
Expand Down

0 comments on commit 248ae7d

Please sign in to comment.