fix child process error propigation
authorJoey Hess <joey@kitenet.net>
Thu, 8 Jul 2010 18:14:59 +0000 (14:14 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 8 Jul 2010 18:14:59 +0000 (14:14 -0400)
$? holds the full exit status

IkiWiki/Setup.pm

index 5b77a6471111d28a0090a769d1c3cbac804e6792..7af744f6ab18fe2bc0132891ce7c4fc3a461040f 100644 (file)
@@ -75,7 +75,8 @@ sub dump ($) {
        }
        else {
                waitpid $pid, 0;
-               exit $? if $?;
+               exit($? >> 8) if $? >> 8;
+               exit(1) if $?;
        }
 }