From d95dde1cc44139ca75f658225b790e124eac2571 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 19 Jul 2010 09:16:54 +0200 Subject: [PATCH] fixes :P --- misc/tools/xonotic-map-compiler | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/tools/xonotic-map-compiler b/misc/tools/xonotic-map-compiler index 9ae0cec1..4f8c8387 100755 --- a/misc/tools/xonotic-map-compiler +++ b/misc/tools/xonotic-map-compiler @@ -186,11 +186,12 @@ sub q3map2(@) local $SIG{ALRM} = sub { kill $pid; }; alarm $timeout if $timeout; - if(waitpid $pid, 0 != $pid) + if(waitpid($pid, 0) != $pid) { die "waitpid: did not return our child process $pid: $!"; } - return !$?; + alarm 0; + return $? == 0; } else # child { -- 2.39.2