On Thursday 06 Sep 2012 07:21:07 Brian K. White wrote:
You don't read very well. It says only that 0 should never indicate an error.
Why do you have to be such an obnoxious pedant, taken together the whole paragraph is: "A value of zero (or EXIT_SUCCESS, which is required to be zero) for the argument status conventionally indicates successful termination. This corresponds to the specification for exit() in the ISO C standard. The convention is followed by utilities such as make and various shells, which interpret a zero status from a child process as success. For this reason, applications should not call exit(0) or _exit(0) when they terminate unsuccessfully; for example, in signal-catching functions." The preceeding text that is relevent is: "The value of status may be 0, EXIT_SUCCESS, EXIT_FAILURE, or any other value, though only the least significant 8 bits (that is, status & 0377) shall be available to a waiting parent process." What I stated, and what I *only* stated, is clear and obvious. 0 is the only definition of success in the spec. Please show me where it states that successfull termination is defined as something else? It's also clear that failure is _only_ defined as 1. Everything other than 0 or 1 is clearly _undefined_ and arbitrary. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org