From: Joey Hess Date: Thu, 8 Jul 2010 18:14:59 +0000 (-0400) Subject: fix child process error propigation X-Git-Tag: 3.20100722~65 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b6f7906da6055ebefe9047a5e065829a8f8024a9;p=ikiwiki.git fix child process error propigation $? holds the full exit status --- diff --git a/IkiWiki/Setup.pm b/IkiWiki/Setup.pm index 5b77a6471..7af744f6a 100644 --- a/IkiWiki/Setup.pm +++ b/IkiWiki/Setup.pm @@ -75,7 +75,8 @@ sub dump ($) { } else { waitpid $pid, 0; - exit $? if $?; + exit($? >> 8) if $? >> 8; + exit(1) if $?; } }