aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sinit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sinit.c b/sinit.c
index a3c2db2..6112e42 100644
--- a/sinit.c
+++ b/sinit.c
@@ -64,7 +64,7 @@ main(void)
if (sigprocmask(SIG_BLOCK, &sigset, NULL) < 0)
eprintf("sinit: sigprocmask:");
- sigfd = signalfd(-1, &sigset, 0);
+ sigfd = signalfd(-1, &sigset, SFD_CLOEXEC);
if (sigfd < 0)
eprintf("sinit: signalfd:");