mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-02-09 06:56:51 +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; };
|
local $SIG{ALRM} = sub { kill $pid; };
|
||||||
alarm $timeout
|
alarm $timeout
|
||||||
if $timeout;
|
if $timeout;
|
||||||
if(waitpid $pid, 0 != $pid)
|
if(waitpid($pid, 0) != $pid)
|
||||||
{
|
{
|
||||||
die "waitpid: did not return our child process $pid: $!";
|
die "waitpid: did not return our child process $pid: $!";
|
||||||
}
|
}
|
||||||
return !$?;
|
alarm 0;
|
||||||
|
return $? == 0;
|
||||||
}
|
}
|
||||||
else # child
|
else # child
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user