From aaba2b75a1e94d1d90c681ead4716ffea359dbd3 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Thu, 18 Nov 1999 06:06:28 +0000 Subject: [PATCH] Be sure to waitpid() after killing the process so as not to leave zombies around. --- webtools/leak-o-matic/make-data.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webtools/leak-o-matic/make-data.pl b/webtools/leak-o-matic/make-data.pl index 0a0cbdc4fe1b..a006f74d08ae 100755 --- a/webtools/leak-o-matic/make-data.pl +++ b/webtools/leak-o-matic/make-data.pl @@ -20,7 +20,7 @@ # Contributor(s): # Chris Waterson # -# $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); + POSIX::waitpid($pid, 0); return -1; } else {