summaryrefslogtreecommitdiffstats
path: root/libdaemon/dexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdaemon/dexec.c')
-rw-r--r--libdaemon/dexec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdaemon/dexec.c b/libdaemon/dexec.c
index e1d1910..b8f74c1 100644
--- a/libdaemon/dexec.c
+++ b/libdaemon/dexec.c
@@ -107,7 +107,8 @@ int daemon_exec(const char *dir, int *ret, const char *prog, ...) {
FD_ZERO(&fds);
FD_SET(p[0], &fds);
- FD_SET(sigfd = daemon_signal_fd(), &fds);
+ sigfd = daemon_signal_fd();
+ FD_SET(sigfd, &fds);
n = 0;