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:
parent
5c8e297319
commit
9f51d1d5bb
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue