From ae02c9f56ecdfdb3dc7aa1064fbdfa84674dbf62 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 21 Jul 2010 15:03:35 +0200 Subject: [PATCH] REALLY fix timeout feature --- misc/tools/xonotic-map-compiler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2