diff --git a/daemon/qrexec-daemon.c b/daemon/qrexec-daemon.c index e95447f4..48e17c1b 100644 --- a/daemon/qrexec-daemon.c +++ b/daemon/qrexec-daemon.c @@ -714,6 +714,8 @@ static void reap_children() while ((pid=waitpid(-1, &status, WNOHANG)) > 0) { for (i = 0; i <= policy_pending_max; i++) { if (policy_pending[i].pid == pid) { + if (!WIFEXITED(status)) + continue; status = WEXITSTATUS(status); if (status != 0) { if (policy_pending[i].response_sent != RESPONSE_PENDING) {