aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2016-01-01 23:46:59 +0100
committerMattias Andrée <maandree@member.fsf.org>2016-01-01 23:47:43 +0100
commitaa0d883983f2945b7015a3e532c328f43ac3809f (patch)
tree933f4b910a6d5262452771593cc48076582717e7 /src
parentbug fix (diff)
downloadsat-aa0d883983f2945b7015a3e532c328f43ac3809f.tar.gz
sat-aa0d883983f2945b7015a3e532c328f43ac3809f.tar.bz2
sat-aa0d883983f2945b7015a3e532c328f43ac3809f.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/satd-diminished.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/satd-diminished.c b/src/satd-diminished.c
index 9d5000a..2769c2f 100644
--- a/src/satd-diminished.c
+++ b/src/satd-diminished.c
@@ -187,7 +187,7 @@ again:
perror(argv[0]);
}
/* Need to set new timer values? */
- if (expired || ((received_signo == SIGCHLD) && (timer_pid == NO_TIMER_SPAWNED)))
+ if (expired || ((received_signo == SIGCHLD) && !children))
t (expired = 0, spawn(argv, envp));
received_signo = 0;
#if 1 || !defined(DEBUG)
@@ -214,7 +214,6 @@ not_done:
/* Was any jobs expired? */
t ((expired |= test_timer(BOOT_FILENO, &fdset)) < 0);
t ((expired |= test_timer(REAL_FILENO, &fdset)) < 0);
- /* Accept connections. */
goto again;
fail: