Introduction
Introduction Statistics Contact Development Disclaimer Help
Close signalfd fd on exec - sinit - suckless init
git clone git://git.suckless.org/sinit
Log
Files
Refs
README
LICENSE
---
commit 31e1196c9174122635ed4ec3be3510209598e097
parent a4ddecaa6a99210f9bc6910c078a3a1cf1667c30
Author: sin <[email protected]>
Date: Fri, 7 Feb 2014 21:31:48 +0000
Close signalfd fd on exec
Diffstat:
M sinit.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:");
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.