summaryrefslogtreecommitdiff
path: root/myrbuild/myrbuild.c
diff options
context:
space:
mode:
Diffstat (limited to 'myrbuild/myrbuild.c')
-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));
}