On Mon, Nov 22, 2004 at 12:46:46PM -0500, Igor Pechtchanski wrote: >Can the code simply propagate the actual exit code into the exitcode >field (since Windows programs don't know about signals)?
And who would use it? How would a UNIX program know that the "negative" exit code represented a windows error code? A UNIX program would interpret the low order bytes as indicating a signal number and would think that there was a core dump if the appropriate bit was set. The exitcode field is just for use by the cygwin DLL. There is no way for a UNIX program to get more than eight bits (seven bits for signals) of exit code from a process. cgf