aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@bordeaux-inp.fr>2023-10-22 00:09:55 +0200
committerTristan Riehs <tristan.riehs@bordeaux-inp.fr>2023-10-22 00:09:55 +0200
commitcbce98cc38b6e22e60d5664ccc4905e47eb68719 (patch)
treef33f95c6f0435658f8f1aa3ea55a94f7e2bcfae7
parent75c555bada280559253975349c192f956ab35674 (diff)
error handling edited
-rw-r--r--rpt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpt.c b/rpt.c
index 6650f1e..d2e4719 100644
--- a/rpt.c
+++ b/rpt.c
@@ -48,10 +48,11 @@ print_version()
void
exit_on_error(int status)
{
- if (WIFEXITED(status))
+ if (!status)
return;
- fprintf(stderr, "Process exited with status %d, aborting.\n", status);
+ fprintf(stderr, "Child process exited with status %d, aborting.\n",
+ status);
exit(1);
}