diff options
author | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2023-10-22 00:09:55 +0200 |
---|---|---|
committer | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2023-10-22 00:09:55 +0200 |
commit | cbce98cc38b6e22e60d5664ccc4905e47eb68719 (patch) | |
tree | f33f95c6f0435658f8f1aa3ea55a94f7e2bcfae7 | |
parent | 75c555bada280559253975349c192f956ab35674 (diff) |
error handling edited
-rw-r--r-- | rpt.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } |