1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +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 ca1e944fce
commit fc0d363a66

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;