aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-29 21:42:30 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-29 21:42:30 +0100
commit8e31d4a06162f8780e946408278070cb5f9847bc (patch)
tree64b83902937c0629adb25365f63249b13f8f6539
parenttypo + do not spawn satd-timer if it is already running (diff)
downloadsat-8e31d4a06162f8780e946408278070cb5f9847bc.tar.gz
sat-8e31d4a06162f8780e946408278070cb5f9847bc.tar.bz2
sat-8e31d4a06162f8780e946408278070cb5f9847bc.tar.xz
close the timers when running job/hook
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/daemon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon.c b/src/daemon.c
index d99b74a..decd23e 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -296,6 +296,8 @@ run_job_or_hook(struct job *job, const char *hook)
case 0:
close(SOCK_FILENO);
close(STATE_FILENO);
+ close(BOOT_FILENO);
+ close(REAL_FILENO);
environ = envp;
execve(*argv, argv, envp);
exit(1);