From: Paul Eggert Date: Sat, 23 Apr 2005 05:57:33 +0000 (+0000) Subject: (main): If getopt fails, exit with status 127, not status 1. X-Git-Tag: CPPI-1_12~943 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e7d4dfd8d46aee70d0d339d44b346c4f738c854;p=thirdparty%2Fcoreutils.git (main): If getopt fails, exit with status 127, not status 1. --- diff --git a/src/nohup.c b/src/nohup.c index f1c6eca9cd..45e6326617 100644 --- a/src/nohup.c +++ b/src/nohup.c @@ -88,7 +88,7 @@ main (int argc, char **argv) parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, usage, AUTHORS, (char const *) NULL); if (getopt_long (argc, argv, "+", NULL, NULL) != -1) - usage (EXIT_FAILURE); + usage (NOHUP_FAILURE); if (argc <= optind) {