Use waitpid instead of wait in Format.pm
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 21 Apr 2014 16:46:49 +0000 (19:46 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 21 Apr 2014 16:46:49 +0000 (19:46 +0300)
lib/Gruntmaster/Daemon/Format.pm

index 5132fbd7387584d0f4ab8888a526e878c5f06ca3..2678906c70199a9acb29f87064ef66b85204d057 100644 (file)
@@ -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;
This page took 0.010793 seconds and 4 git commands to generate.