(main): If getopt fails, exit with status 127, not status 1.

This commit is contained in:
Paul Eggert
2005-04-23 05:57:33 +00:00
parent 39ecad7d9a
commit 4e7d4dfd8d
+1 -1
View 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)
{