From d003f738d9c583afa976efc252740c68a37479bb Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Sat, 11 Nov 2023 19:58:34 +0100 Subject: exit with subprocess' exit code when failure --- rpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- cgit v1.2.3