Fixed a bug which prevented final waiting and caused lots of zombies

release-1.5.4.branch
Thomas Schmitt 14 years ago
parent e759bd5240
commit 8b0920df53
  1. 2
      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);
}

Loading…
Cancel
Save