From a9fb1f86dd478133c73deb76fc89442cbdd9443b Mon Sep 17 00:00:00 2001 From: minima Date: Thu, 16 Nov 2000 16:35:24 +0000 Subject: [PATCH] try a different strategy --- perl/cluster.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl/cluster.pl b/perl/cluster.pl index eabc56e6..1e850c90 100755 --- a/perl/cluster.pl +++ b/perl/cluster.pl @@ -239,11 +239,12 @@ sub cease # the reaper of children sub reap { - $SIG{'CHLD'} = \&reap; my $cpid; - while (($cpid = waitpid(1, &WNOHANG) != -1)) { + while (($cpid = waitpid(1, &WNOHANG)) != -1) { + dbg('reap', "cpid: $cpid"); @outstanding_connects = grep {$_->{pid} != $cpid} @outstanding_connects; } + dbg('reap', "cpid: $cpid"); } # this is where the input queue is dealt with and things are dispatched off to other parts of -- 2.43.0