aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@bordeaux-inp.fr>2023-11-11 19:58:34 +0100
committerTristan Riehs <tristan.riehs@bordeaux-inp.fr>2023-11-11 19:58:34 +0100
commitd003f738d9c583afa976efc252740c68a37479bb (patch)
tree68d8664e24b7de4317009221a6305ff018e10df1
parentcbce98cc38b6e22e60d5664ccc4905e47eb68719 (diff)
exit with subprocess' exit code when failure
-rw-r--r--rpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpt.c b/rpt.c
index d2e4719..298f60e 100644
--- a/rpt.c
+++ b/rpt.c
@@ -53,7 +53,7 @@ exit_on_error(int status)
fprintf(stderr, "Child process exited with status %d, aborting.\n",
status);
- exit(1);
+ exit(status);
}
/* Ignore subprocesses' errors. */