Re: [PATCH]exit.c: support larger exit code

From: Tony Luck
Date: Wed Aug 25 2010 - 18:23:13 EST


On Wed, Aug 25, 2010 at 2:49 PM, Andrew Morton
<akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> There are back-compatibility issues.

Also standards conformance issues. Posix says this about exit():

"The value of status may be 0, EXIT_SUCCESS, EXIT_FAILURE, [CX] or
any other value, though only the least significant 8 bits (that is,
status & 0377) shall be available to a waiting parent process."

Full reference here:
http://www.opengroup.org/onlinepubs/000095399/functions/exit.html

-Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/