1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00

add signal handler for SIGUSR1 to interrupt threads

This commit is contained in:
Steffen Vogel 2019-06-05 18:59:10 +02:00
parent 5c8e297319
commit 9f51d1d5bb

View file

@ -128,6 +128,10 @@ int signals_init(void (*cb)(int signal, siginfo_t *sinfo, void *ctx))
if (ret)
return ret;
ret = sigaction(SIGUSR1, &sa_quit, nullptr);
if (ret)
return ret;
ret = sigaction(SIGALRM, &sa_quit, nullptr);
if (ret)
return ret;