From 4e7d4dfd8d46aee70d0d339d44b346c4f738c854 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 23 Apr 2005 05:57:33 +0000 Subject: (main): If getopt fails, exit with status 127, not status 1. --- src/nohup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nohup.c b/src/nohup.c index f1c6eca9c..45e632661 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) { -- cgit v1.2.3-70-g09d2