From 8b0920df53229981434be5bcf477b79921b84a68 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 27 Mar 2009 21:25:44 +0100 Subject: [PATCH] Fixed a bug which prevented final waiting and caused lots of zombies --- libisofs/filters/external.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libisofs/filters/external.c b/libisofs/filters/external.c index 92fd3a8..c1ce501 100644 --- a/libisofs/filters/external.c +++ b/libisofs/filters/external.c @@ -286,7 +286,7 @@ int extf_stream_close(IsoStream *stream) close(data->running->send_fd); ret = waitpid(data->running->pid, &status, WNOHANG); - if (ret == -1 && data->running->pid != 0) { + if (ret == 0 && data->running->pid != 0) { kill(data->running->pid, SIGKILL); waitpid(data->running->pid, &status, 0); }