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:
parent
ca1e944fce
commit
fc0d363a66
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