diff options
author | Ori Bernstein <orib@google.com> | 2013-02-19 13:00:32 -0500 |
---|---|---|
committer | Ori Bernstein <orib@google.com> | 2013-02-19 13:00:32 -0500 |
commit | 231f122bcbc9010decfaae7942916d7ce948767d (patch) | |
tree | 4dfb37051edc6c694f529b24a2d59427389e60a0 /myrbuild | |
parent | 734d2e4ffd947e1a5fd73ae22029d3b0647be290 (diff) | |
download | mc-231f122bcbc9010decfaae7942916d7ce948767d.tar.gz |
It's not a fatal if an 'mc' subcommand fails.
We should just exit with the status returned.
Diffstat (limited to 'myrbuild')
-rw-r--r-- | myrbuild/myrbuild.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/myrbuild/myrbuild.c b/myrbuild/myrbuild.c index be2d048..2e511cb 100644 --- a/myrbuild/myrbuild.c +++ b/myrbuild/myrbuild.c @@ -127,7 +127,7 @@ void run(char **cmd) waitpid(pid, &status, 0); } if (WIFEXITED(status) && WEXITSTATUS(status) != 0) - die("%s: exited with status %d\n", cmd[0], WEXITSTATUS(status)); + exit(WEXITSTATUS(status)); else if (WIFSIGNALED(status)) die("%s: exited with signal %d\n", cmd[0], WTERMSIG(status)); } |