summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2013-02-19 13:00:32 -0500
committerOri Bernstein <orib@google.com>2013-02-19 13:00:32 -0500
commit231f122bcbc9010decfaae7942916d7ce948767d (patch)
tree4dfb37051edc6c694f529b24a2d59427389e60a0
parent734d2e4ffd947e1a5fd73ae22029d3b0647be290 (diff)
downloadmc-231f122bcbc9010decfaae7942916d7ce948767d.tar.gz
It's not a fatal if an 'mc' subcommand fails.
We should just exit with the status returned.
-rw-r--r--myrbuild/myrbuild.c2
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));
}