bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: system.h cleanups


From: Eric Blake
Subject: Re: system.h cleanups
Date: Fri, 09 Oct 2009 06:28:15 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Pádraig Brady on 10/9/2009 3:47 AM:
>>> nohup enums NOHUP_FAILURE=127 which clashes with EXIT_ENOENT?
>> Required by POSIX to fail with 127 on internal failure (bummer).
> 
> Weird. POSIX does say that and includes the reason:

The reason you quoted only mentions if the utility is not found; not if an
internal error occurred.  I've filed a bug with the Austin group:
http://austingroupbugs.net/view.php?id=165
http://www.opengroup.org/sophocles/show_mail.tpl?CALLER=index.tpl&source=L&listname=austin-group-l&id=12862

> Note however that env and nice are mentioned,
> and the above paragraph is also included in their description,
> but that they've been specified to use 125 on internal failure.
> So that paragraph should be updated in POSIX at least
> and maybe with clarification we could use EXIT_CANCELED in nohup
> for consistency?

If POSIX agrees with my bug report, then we can blindly use EXIT_CANCELED
in nohup; if not, I'm almost willing to make it a POSIXLY_CORRECT issue
(return 125 unless we're complying with POSIX).  The 'command' utility has
the same bug; whereas env, exec, nice, time, xargs were all consistent.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrPLF8ACgkQ84KuGfSFAYBTpQCgr4e4blmkkzlkvmrCohDlzknD
5pIAmwfeoxn+028H4o4ymUKEeBYJuMmx
=6bx1
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]