diff options
author | Joey Hess <joey@kitenet.net> | 2010-07-08 14:14:59 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-07-08 14:14:59 -0400 |
commit | b6f7906da6055ebefe9047a5e065829a8f8024a9 (patch) | |
tree | 37c15c34819a4e8faf6b36843ce05a2de2c34acf /IkiWiki | |
parent | 3473524e0aae2fcf20527bf1fbed278c01de6dba (diff) | |
download | ikiwiki-b6f7906da6055ebefe9047a5e065829a8f8024a9.tar ikiwiki-b6f7906da6055ebefe9047a5e065829a8f8024a9.tar.gz |
fix child process error propigation
$? holds the full exit status
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Setup.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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 $?; } } |