mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-03-31 07:36:56 +00:00
REALLY fix timeout feature
This commit is contained in:
parent
ad6535cc2a
commit
ae02c9f56e
@ -183,7 +183,7 @@ sub q3map2(@)
|
||||
or die "fork: $!";
|
||||
if($pid) # parent
|
||||
{
|
||||
local $SIG{ALRM} = sub { warn "SIGALRM caught\n"; kill $pid; };
|
||||
local $SIG{ALRM} = sub { warn "SIGALRM caught\n"; kill TERM => $pid; };
|
||||
alarm $timeout
|
||||
if $timeout;
|
||||
if(waitpid($pid, 0) != $pid)
|
||||
|
Loading…
Reference in New Issue
Block a user