mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-02-03 04:01:53 +00:00
fixes :P
This commit is contained in:
parent
75840126be
commit
d95dde1cc4
@ -186,11 +186,12 @@ sub q3map2(@)
|
||||
local $SIG{ALRM} = sub { kill $pid; };
|
||||
alarm $timeout
|
||||
if $timeout;
|
||||
if(waitpid $pid, 0 != $pid)
|
||||
if(waitpid($pid, 0) != $pid)
|
||||
{
|
||||
die "waitpid: did not return our child process $pid: $!";
|
||||
}
|
||||
return !$?;
|
||||
alarm 0;
|
||||
return $? == 0;
|
||||
}
|
||||
else # child
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user