wire up sigusr1 to trigger a network thaw on non win32 platforms

This commit is contained in:
Jeff 2022-01-27 09:57:43 -05:00
parent cf0e3146a2
commit 38c6d99375
1 changed files with 8 additions and 0 deletions

View File

@ -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();