aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/signal.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/signal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/signal.c b/src/signal.c
index 15d90ab..cbe4aed 100644
--- a/src/signal.c
+++ b/src/signal.c
@@ -57,6 +57,7 @@ int signal_block_sigterms(void)
int signalfd_create(const sigset_t *set)
{
+ static const int flags = SFD_CLOEXEC;
sigset_t old;
int ret = 0;
@@ -64,7 +65,7 @@ int signalfd_create(const sigset_t *set)
if (ret < 0)
return ret;
- ret = signalfd(-1, set, SFD_CLOEXEC);
+ ret = signalfd(-1, set, flags);
if (ret < 0)
goto restore;