Skip to content
Tcl Source Code Artifact [91ff646723]
Login

Artifact [91ff646723]

Artifact 91ff6467230152d7ee06113589b3a4be1c0e2b87:

Manifest of check-in [91ff646723] - * generic/tclIO.h (CHANNEL_INCLOSE): New flag. Set in * generic/tclIO.c (Tcl_UnregisterChannel): 'Tcl_Close' while the * generic/tclIO.c (Tcl_Close): close callbacks are run. Checked in 'Tcl_Close' and 'Tcl_Unregister' to prevent recursive call of 'close' in the close-callbacks. This is a possible error made by implementors of virtual filesystems based on 'tclvfs', thinking that they have to close the channel in the close handler for the filesystem. * generic/tclIO.c: * generic/tclIO.h: * Not reverting, but #ifdef'ing the changes from May 19, 2004 out of the core. This removes the ***POTENTIAL INCOMPATIBILITY*** for channel drivers it introduced. This has become possible due to Expect gaining a BlockModeProc and now handling blockingg and non-blocking modes correctly. Thus [SF Tcl Bug 943274] is still fixed if a recent enough version of Expect is used. * doc/CrtChannel.3: Added warning about usage of a channel without a BlockModeProc. by andreas_kupries on 2004-07-15 20:46:17.
B fd590c8526ee675d543e6a1b28f682e0cea05b5b
C \n\t*\sgeneric/tclIO.h\s(CHANNEL_INCLOSE):\s\s\s\s\s\s\sNew\sflag.\sSet\sin\n\t*\sgeneric/tclIO.c\s(Tcl_UnregisterChannel):\s'Tcl_Close'\swhile\sthe\n\t*\sgeneric/tclIO.c\s(Tcl_Close):\s\s\s\s\s\s\s\s\s\s\s\s\sclose\scallbacks\sare\n\t\s\srun.\sChecked\sin\s'Tcl_Close'\sand\s'Tcl_Unregister'\sto\sprevent\n\t\s\srecursive\scall\sof\s'close'\sin\sthe\sclose-callbacks.\sThis\sis\sa\n\t\s\spossible\serror\smade\sby\simplementors\sof\svirtual\sfilesystems\sbased\n\t\s\son\s'tclvfs',\sthinking\sthat\sthey\shave\sto\sclose\sthe\schannel\sin\sthe\n\t\s\sclose\shandler\sfor\sthe\sfilesystem.\n\n\t*\sgeneric/tclIO.c:\n\t*\sgeneric/tclIO.h:\n\t*\sNot\sreverting,\sbut\s#ifdef'ing\sthe\schanges\sfrom\sMay\s19,\s2004\sout\n\t\s\sof\sthe\score.\sThis\sremoves\sthe\s***POTENTIAL\sINCOMPATIBILITY***\n\t\s\sfor\schannel\sdrivers\sit\sintroduced.\sThis\shas\sbecome\spossible\sdue\n\t\s\sto\sExpect\sgaining\sa\sBlockModeProc\sand\snow\shandling\sblockingg\sand\n\t\s\snon-blocking\smodes\scorrectly.\sThus\s[SF\sTcl\sBug\s943274]\sis\sstill\n\t\s\sfixed\sif\sa\srecent\senough\sversion\sof\sExpect\sis\sused.\n\n\t*\sdoc/CrtChannel.3:\sAdded\swarning\sabout\susage\sof\sa\schannel\swithout\n\t\s\sa\sBlockModeProc.\n
D 2004-07-15T20:46:17
F ChangeLog 8175cc954d8a63bc2bad8abdd9b5a98598412d26
F doc/CrtChannel.3 1d09aaf640b5fa9b5a8354346b9576d397956c6b
F generic/tclEvent.c be184c0e60359e56fa0ef999ff23b794353a3d7b
F generic/tclIO.c bcb94738ebeb21c6ce16ac9a2299f90d38b664f4
F generic/tclIO.h f3d868fec26a6effb848da38600eb62ddbbdd761
F generic/tclIOCmd.c 7c32ca7092dd695d45c30ecc8193c6c5180cf570
P 3aa9e1bdf5f319d27f5ff8e3590ceae104f96acb
U andreas_kupries
Z b7279305226f0732eae2c8bcc6d10328