From: Roland McGrath Date: Sun, 14 Jul 1996 17:07:13 +0000 (+0000) Subject: Sun Jul 14 12:59:27 1996 Roland McGrath X-Git-Tag: 3.74.5~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fde68d03f386ce1a3ae1f02579387359cc140325;p=thirdparty%2Fmake.git Sun Jul 14 12:59:27 1996 Roland McGrath * main.c (main): Exit with status 2 when update_goal_chain returns 2. --- diff --git a/main.c b/main.c index 9c7efea8..97b160d8 100644 --- a/main.c +++ b/main.c @@ -1380,8 +1380,9 @@ int main (int argc, char ** argv) status = EXIT_SUCCESS; break; case 2: - /* Updating failed. */ - status = EXIT_FAILURE; + /* Updating failed. POSIX.2 specifies exit status >1 for this; + but in VMS, there is only success and failure. */ + status = EXIT_FAILURE ? 2 : EXIT_FAILURE; break; case 1: /* We are under -q and would run some commands. */