diff options
author | sin <sin@2f30.org> | 2014-02-07 21:31:48 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-02-07 21:31:48 +0000 |
commit | 31e1196c9174122635ed4ec3be3510209598e097 (patch) | |
tree | 94e352292d32911e1b185d311acd405522982d56 | |
parent | a4ddecaa6a99210f9bc6910c078a3a1cf1667c30 (diff) |
Close signalfd fd on exec
-rw-r--r-- | sinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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:"); |