diff options
| author | zv@archiware.com <vasiljevic> | 2005-10-13 21:01:41 (GMT) |
|---|---|---|
| committer | zv@archiware.com <vasiljevic> | 2005-10-13 21:01:41 (GMT) |
| commit | bfc3798696eb0e5c6834f30c4d84b64f43e0aa3b (patch) | |
| tree | 8b0bc256d2370745b74b9e1cb24bde5cb95174d5 /generic/tclIO.c | |
| parent | d1f453aa3eaa1bef40f36c97c8df36c4e6bc6a93 (diff) | |
| download | tcl-bfc3798696eb0e5c6834f30c4d84b64f43e0aa3b.zip tcl-bfc3798696eb0e5c6834f30c4d84b64f43e0aa3b.tar.gz tcl-bfc3798696eb0e5c6834f30c4d84b64f43e0aa3b.tar.bz2 | |
Added some more clarifying comments in Tcl_ClearChannelHandlers()
Diffstat (limited to 'generic/tclIO.c')
| -rw-r--r-- | generic/tclIO.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c index 208fb69..e3abd8a 100644 --- a/generic/tclIO.c +++ b/generic/tclIO.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIO.c,v 1.61.2.13 2005/10/13 20:40:48 vasiljevic Exp $ + * RCS: @(#) $Id: tclIO.c,v 1.61.2.14 2005/10/13 21:01:41 vasiljevic Exp $ */ #include "tclInt.h" @@ -2707,14 +2707,13 @@ Tcl_ClearChannelHandlers (channel) * file-events still sitting in the event queue of the current thread. * We deliberately do not call UpdateInterest() because this could * re-schedule new events if the channel still needs to be flushed. + * This should happen all the time, but Linux 2.4 systems seem to lose + * the flush on close in some cases (socket-9.2 socket-11.13) if this is + * used, so restrict it to TCL_THREADS, where you can otherwise crash + * numerous systems. [Bug 1323992] */ statePtr->interestMask = 0; - - /* - * TEMPORARILY DEFINED FOR THREADED BUILD ONLY. SEE SF BUG# 1323992 - */ - #ifdef TCL_THREADS (chanPtr->typePtr->watchProc)(chanPtr->instanceData, 0); #endif |
