mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-19 09:25:28 +00:00
commit
a811d1138d
@ -166,6 +166,7 @@ main(int argc, char *argv[])
|
|||||||
if(ctx)
|
if(ctx)
|
||||||
{
|
{
|
||||||
signal(SIGINT, handle_signal);
|
signal(SIGINT, handle_signal);
|
||||||
|
signal(SIGTERM, handle_signal);
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
signal(SIGHUP, handle_signal);
|
signal(SIGHUP, handle_signal);
|
||||||
#endif
|
#endif
|
||||||
|
@ -184,9 +184,8 @@ namespace llarp
|
|||||||
void
|
void
|
||||||
Context::HandleSignal(int sig)
|
Context::HandleSignal(int sig)
|
||||||
{
|
{
|
||||||
if(sig == SIGINT)
|
if(sig == SIGINT || sig == SIGTERM)
|
||||||
{
|
{
|
||||||
llarp::LogInfo("SIGINT");
|
|
||||||
SigINT();
|
SigINT();
|
||||||
}
|
}
|
||||||
// TODO(despair): implement hot-reloading config on NT
|
// TODO(despair): implement hot-reloading config on NT
|
||||||
|
Loading…
Reference in New Issue
Block a user