Be sure to waitpid() after killing the process so as not to leave zombies around.

This commit is contained in:
waterson%netscape.com 1999-11-18 06:06:28 +00:00
parent 7455ff72f8
commit aaba2b75a1

View File

@ -20,7 +20,7 @@
# Contributor(s): # Contributor(s):
# Chris Waterson <waterson@netscape.com> # Chris Waterson <waterson@netscape.com>
# #
# $Id: make-data.pl,v 1.5 1999/11/17 23:02:53 waterson%netscape.com Exp $ # $Id: make-data.pl,v 1.6 1999/11/18 06:06:28 waterson%netscape.com Exp $
# #
# #
@ -69,6 +69,7 @@ sub ForkAndWait($$$) {
} }
kill("TERM", $pid); kill("TERM", $pid);
POSIX::waitpid($pid, 0);
return -1; return -1;
} }
else { else {