summaryrefslogtreecommitdiffstats
path: root/libdaemon/dexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdaemon/dexec.c')
-rw-r--r--libdaemon/dexec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdaemon/dexec.c b/libdaemon/dexec.c
index 9a780f4..3aadf9c 100644
--- a/libdaemon/dexec.c
+++ b/libdaemon/dexec.c
@@ -182,6 +182,7 @@ int daemon_execv(const char *dir, int *ret, const char *prog, va_list ap) {
if (sig != SIGCHLD) {
daemon_log(LOG_WARNING, "Killing child.");
kill(pid, SIGTERM);
+ break;
}
}
}