[Mono-list] Process.Exitcode is always less than 255

David Brown mono at davidb.org
Sun Dec 16 15:02:09 EST 2007


On Sun, Dec 16, 2007 at 02:16:39PM -0500, Jeffrey Stedfast wrote:

>Programs under Linux always return a value between 0 and 255
>(inclusively), they cannot return anything outside of that range.

It's not just Linux.  Posix declares that only the low 8 bits of the exist
status are significant.  There aren't really any other significant players
in the OS marketplace that don't use the Posix exit status.  Windows is the
unusual case here in allowing larger exit codes.

Dave


More information about the Mono-list mailing list