]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): If getopt fails, exit with status 127, not status 1.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Apr 2005 05:57:33 +0000 (05:57 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Apr 2005 05:57:33 +0000 (05:57 +0000)
src/nohup.c

index f1c6eca9cdf6e4816d7c2766411979be66ad4b31..45e6326617c26a2eb7e150dbae573d1a291dc397 100644 (file)
@@ -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)
     {