From 8de07f3e4a67fa1c9bd5293d183090ad08b7be6f Mon Sep 17 00:00:00 2001 From: Hartmut Becker Date: Sun, 24 Aug 2014 22:06:15 +0200 Subject: Enhance/fix VMS exit code handling. * commands.c, function.c, hash.c, job.c, main.c, output.c: use MAKE exit codes. * makeint.h: encode make exit codes so that they are VMS compatible. * job.c: check child exit code for VMS style exit codes. * vmsjobs.c: save and return VMS style exit code. --- output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'output.c') diff --git a/output.c b/output.c index 625413b..a15d563 100644 --- a/output.c +++ b/output.c @@ -495,7 +495,7 @@ close_stdout (void) perror_with_name (_("write error: stdout"), ""); else O (error, NILF, _("write error: stdout")); - exit (EXIT_FAILURE); + exit (MAKE_TROUBLE); } } @@ -699,7 +699,7 @@ fatal (const gmk_floc *flocp, size_t len, const char *fmt, ...) assert (fmtbuf.buffer[len-1] == '\0'); outputs (1, fmtbuf.buffer); - die (2); + die (MAKE_FAILURE); } /* Print an error message from errno. */ -- cgit v1.2.3