fix child process error propigation

$? holds the full exit status
master
Joey Hess 2010-07-08 14:14:59 -04:00
parent 3473524e0a
commit b6f7906da6
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ sub dump ($) {
}
else {
waitpid $pid, 0;
exit $? if $?;
exit($? >> 8) if $? >> 8;
exit(1) if $?;
}
}