Use waitpid instead of wait in Format.pm
[gruntmaster-daemon.git] / 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.010299 seconds and 4 git commands to generate.