From 31e1196c9174122635ed4ec3be3510209598e097 Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 7 Feb 2014 21:31:48 +0000 Subject: Close signalfd fd on exec --- sinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:"); -- cgit v1.2.3-70-g09d2