Manifest of check-in
[3e0544149c]
- * win/tclWinPipe.c (Tcl_WaitPid): When a process exits with an
exception, pass this notice on to the caller with a SIG* code
rather than truncating the exit code and missing the meaning.
This allows TclCleanupChildren() to report "CHILDKILLED".
This has a different behavior than unix in that closing the
read pipe to a process sends the SIGPIPE signal which is
returned as a SIGPIPE exit status. On windows, we send the
process a CTRL_BREAK_EVENT and get back a CONTROL_C_EXIT which
is documented to mean a SIGINT which seems wrong as a system,
but is the correct exit status.
by
davygrvy on
2002-12-04 22:04:38.
B 7eeb4a7a690043cdbd826c0e9baf88e051da2b19
C \t*\swin/tclWinPipe.c\s(Tcl_WaitPid):\s\sWhen\sa\sprocess\sexits\swith\san\n\texception,\spass\sthis\snotice\son\sto\sthe\scaller\swith\sa\sSIG*\scode\n\trather\sthan\struncating\sthe\sexit\scode\sand\smissing\sthe\smeaning.\n\tThis\sallows\sTclCleanupChildren()\sto\sreport\s"CHILDKILLED".\n\n\tThis\shas\sa\sdifferent\sbehavior\sthan\sunix\sin\sthat\sclosing\sthe\n\tread\spipe\sto\sa\sprocess\ssends\sthe\sSIGPIPE\ssignal\swhich\sis\n\treturned\sas\sa\sSIGPIPE\sexit\sstatus.\s\sOn\swindows,\swe\ssend\sthe\n\tprocess\sa\sCTRL_BREAK_EVENT\sand\sget\sback\sa\sCONTROL_C_EXIT\swhich\n\tis\sdocumented\sto\smean\sa\sSIGINT\swhich\sseems\swrong\sas\sa\ssystem,\n\tbut\sis\sthe\scorrect\sexit\sstatus.\n
D 2002-12-04T22:04:38
F ChangeLog 0a404d91744aecbec201d4c21d4657119572d214
F win/tclWinPipe.c ccbe633b51fab4fe795efacdad15df8d8ae34a6b
P 7eeb4a7a690043cdbd826c0e9baf88e051da2b19
U davygrvy
Z fdd7c51d8fc21e3c2f0995b147d47799