diff options
| author | davygrvy@pobox.com <davygrvy> | 2002-12-04 03:59:16 (GMT) |
|---|---|---|
| committer | davygrvy@pobox.com <davygrvy> | 2002-12-04 03:59:16 (GMT) |
| commit | d92e0a48193add2e1d04a6f948bb6065c45dbdb5 (patch) | |
| tree | 421ad51a976aae5d589bdba7e8fb98974b4cc60f /unix/tclUnixFile.c | |
| parent | e9620b483cb58f9b6658317a033f6bcb4c1f8f25 (diff) | |
| download | tcl-d92e0a48193add2e1d04a6f948bb6065c45dbdb5.zip tcl-d92e0a48193add2e1d04a6f948bb6065c45dbdb5.tar.gz tcl-d92e0a48193add2e1d04a6f948bb6065c45dbdb5.tar.bz2 | |
* win/tclAppInit.c (sigHandler): Protect from trying to close a
NULL handle.
* win/tclWinPipe.c (PipeClose2Proc, TclpCreateProcess): Send a
real Win32 signal (CTRL_C_EVENT) when the read channel is brought
down to alert the child to close on its side. Start the process
with CREATE_NEW_PROCESS_GROUP to allow the ability to send these
signals. The following test case now brings down the child
without the use of an external [kill] command.
% set p [open "|[info name]" w+]
file8d5380
% pid $p
2876
% close $p <- now doesn't block in Tcl_WaitPid()
%
Diffstat (limited to 'unix/tclUnixFile.c')
0 files changed, 0 insertions, 0 deletions
