mirror of https://github.com/oxen-io/lokinet
wire up sigusr1 to trigger a network thaw on non win32 platforms
This commit is contained in:
parent
cf0e3146a2
commit
38c6d99375
|
@ -166,6 +166,14 @@ namespace llarp
|
|||
SigINT();
|
||||
}
|
||||
#ifndef _WIN32
|
||||
if (sig == SIGUSR1)
|
||||
{
|
||||
if (router and not router->IsServiceNode())
|
||||
{
|
||||
LogInfo("SIGUSR1: resetting network state");
|
||||
router->Thaw();
|
||||
}
|
||||
}
|
||||
if (sig == SIGHUP)
|
||||
{
|
||||
Reload();
|
||||
|
|
Loading…
Reference in New Issue