projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3473524
)
fix child process error propigation
author
Joey Hess
<joey@kitenet.net>
Thu, 8 Jul 2010 18:14:59 +0000
(14:14 -0400)
committer
Joey Hess
<joey@kitenet.net>
Thu, 8 Jul 2010 18:14:59 +0000
(14:14 -0400)
$? holds the full exit status
IkiWiki/Setup.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Setup.pm
b/IkiWiki/Setup.pm
index 5b77a6471111d28a0090a769d1c3cbac804e6792..7af744f6ab18fe2bc0132891ce7c4fc3a461040f 100644
(file)
--- 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 $?;
}
}