From: Rudolf Polzer Date: Wed, 21 Jul 2010 13:03:35 +0000 (+0200) Subject: REALLY fix timeout feature X-Git-Tag: xonotic-v0.1.0preview~349 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=ae02c9f56ecdfdb3dc7aa1064fbdfa84674dbf62;ds=sidebyside REALLY fix timeout feature --- diff --git a/misc/tools/xonotic-map-compiler b/misc/tools/xonotic-map-compiler index 7a114e52..596a511c 100755 --- a/misc/tools/xonotic-map-compiler +++ b/misc/tools/xonotic-map-compiler @@ -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)