]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
fixes :P
authorRudolf Polzer <divverent@alientrap.org>
Mon, 19 Jul 2010 07:16:54 +0000 (09:16 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 19 Jul 2010 07:16:54 +0000 (09:16 +0200)
misc/tools/xonotic-map-compiler

index 9ae0cec16434d1d2b78f0a38acb0a449c3663a05..4f8c83871edcfbb6ee6eab9ca84d9384afcc289c 100755 (executable)
@@ -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
        {