mirror of
https://github.com/pygos/init.git
synced 2024-11-22 19:19:47 +01:00
Fix: actually process SIGUSR1 in initd
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
parent
9fece2eb88
commit
72c02308cd
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ int sigsetup(void)
|
||||||
sigaddset(&mask, SIGCHLD);
|
sigaddset(&mask, SIGCHLD);
|
||||||
sigaddset(&mask, SIGINT);
|
sigaddset(&mask, SIGINT);
|
||||||
sigaddset(&mask, SIGTERM);
|
sigaddset(&mask, SIGTERM);
|
||||||
|
sigaddset(&mask, SIGUSR1);
|
||||||
|
|
||||||
sfd = signalfd(-1, &mask, SFD_CLOEXEC);
|
sfd = signalfd(-1, &mask, SFD_CLOEXEC);
|
||||||
if (sfd == -1) {
|
if (sfd == -1) {
|
||||||
|
|
Loading…
Reference in a new issue