Commit 7215f711 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼

add signal handler for SIGUSR1 to interrupt threads

parent b18132e5
...@@ -128,6 +128,10 @@ int signals_init(void (*cb)(int signal, siginfo_t *sinfo, void *ctx)) ...@@ -128,6 +128,10 @@ int signals_init(void (*cb)(int signal, siginfo_t *sinfo, void *ctx))
if (ret) if (ret)
return ret; return ret;
ret = sigaction(SIGUSR1, &sa_quit, nullptr);
if (ret)
return ret;
ret = sigaction(SIGALRM, &sa_quit, nullptr); ret = sigaction(SIGALRM, &sa_quit, nullptr);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment