nohup: use EXIT_CANCELED if not POSIXLY_CORRECT
authorEric Blake <ebb9@byu.net>
Fri, 23 Oct 2009 12:59:23 +0000 (06:59 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 23 Oct 2009 22:24:08 +0000 (16:24 -0600)
commit1ce9e1e5ca1e7491bccedeeced15470d856c9a22
treeb1ff911072e189b2e0b3b84f605353e68fae27ac
parentb6540b96ba6510af7b2acc6e81bd9d9583f7c96b
nohup: use EXIT_CANCELED if not POSIXLY_CORRECT

* src/nohup.c (NOHUP_FAILURE): Rename...
(POSIX_NOHUP_FAILURE): ...to this.
(main): Pay attention to POSIXLY_CORRECT, to determine whether to
use status 125 or 127.
* doc/coreutils.texi (nohup invocation): Document this.
* NEWS: Likewise.
* tests/misc/invalid-opt (exit_status): Adjust expected results.
* tests/misc/help-version (expected_failure_status): Likewise.
* tests/misc/nohup: Likewise.
NEWS
doc/coreutils.texi
src/nohup.c
tests/misc/help-version
tests/misc/invalid-opt
tests/misc/nohup