From eeb4e981e777965ddc1791300419030b1187ddb8 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 19 Jul 2010 14:39:21 +0200 Subject: [PATCH] more timeout fixing --- misc/tools/xonotic-map-compiler | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/tools/xonotic-map-compiler b/misc/tools/xonotic-map-compiler index 4f8c8387..7a114e52 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 { kill $pid; }; + local $SIG{ALRM} = sub { warn "SIGALRM caught\n"; kill $pid; }; alarm $timeout if $timeout; if(waitpid($pid, 0) != $pid) @@ -191,7 +191,7 @@ sub q3map2(@) die "waitpid: did not return our child process $pid: $!"; } alarm 0; - return $? == 0; + return ($? == 0); } else # child { -- 2.39.2