From: Rudolf Polzer Date: Mon, 19 Jul 2010 07:16:54 +0000 (+0200) Subject: fixes :P X-Git-Tag: xonotic-v0.1.0preview~364 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=d95dde1cc44139ca75f658225b790e124eac2571;hp=75840126be47555c21064ffd8fbfdee34da5c3c5 fixes :P --- 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 {