mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
do nothing upon SIGHUP for now
This commit is contained in:
parent
7f08bbe938
commit
248ae7d4d5
1 changed files with 2 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue