From aa0d883983f2945b7015a3e532c328f43ac3809f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 1 Jan 2016 23:46:59 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/satd-diminished.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/satd-diminished.c') 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: -- cgit v1.2.3-70-g09d2