aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-07-08 14:14:59 -0400
committerJoey Hess <joey@kitenet.net>2010-07-08 14:14:59 -0400
commitb6f7906da6055ebefe9047a5e065829a8f8024a9 (patch)
tree37c15c34819a4e8faf6b36843ce05a2de2c34acf /IkiWiki
parent3473524e0aae2fcf20527bf1fbed278c01de6dba (diff)
downloadikiwiki-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.pm3
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 $?;
}
}