From a4312405f209ff19fa071b15bda843f4e68ffbbc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 18 May 2010 04:16:33 +0200 Subject: manager: before entering loop dispatch queued up SIGCHLDs --- src/manager.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/manager.c b/src/manager.c index 688d9fa..f6f205f 100644 --- a/src/manager.c +++ b/src/manager.c @@ -1939,6 +1939,11 @@ int manager_loop(Manager *m) { assert(m); m->exit_code = MANAGER_RUNNING; + /* There might still be some zombies hanging around from + * before we were exec()'ed. Leat's reap them */ + if ((r = manager_dispatch_sigchld(m)) < 0) + return r; + while (m->exit_code == MANAGER_RUNNING) { struct epoll_event event; int n; -- cgit v1.2.3