From: Marius Gavrilescu Date: Mon, 21 Apr 2014 16:46:49 +0000 (+0300) Subject: Use waitpid instead of wait in Format.pm X-Git-Tag: 5999.000_003~11 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=b3f845d397437ed632d409cd665d4de01cde59cd;p=gruntmaster-daemon.git Use waitpid instead of wait in Format.pm --- diff --git a/lib/Gruntmaster/Daemon/Format.pm b/lib/Gruntmaster/Daemon/Format.pm index 5132fbd..2678906 100644 --- a/lib/Gruntmaster/Daemon/Format.pm +++ b/lib/Gruntmaster/Daemon/Format.pm @@ -45,7 +45,7 @@ sub mkrun{ my $tle; local $SIG{ALRM} = sub { kill KILL => $ret; $tle = 1}; alarm $args{timeout} if exists $args{timeout}; - wait; + waitpid $ret, 0; alarm 0; my $sig = $? & 127; my $signame = sig_name $sig;