sinit

suckless init
git clone git://git.suckless.org/sinit
Log | Files | Refs | README | LICENSE

commit 31e1196c9174122635ed4ec3be3510209598e097
parent a4ddecaa6a99210f9bc6910c078a3a1cf1667c30
Author: sin <sin@2f30.org>
Date:   Fri,  7 Feb 2014 21:31:48 +0000

Close signalfd fd on exec

Diffstat:
Msinit.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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:");