From 9981a09892b47d4fc698dbeb2c848635f045b86a Mon Sep 17 00:00:00 2001 From: kupries Date: Wed, 5 Apr 2000 19:00:40 +0000 Subject: 2000-04-05 Andreas Kupries * generic/tclIO.c (Tcl_UnstackChannel, line 1831): Forcing interest mask to the correct value after an unstack and re-initialization of the notifier via the watchProc. Without this the first fileevent after an unstack will come through and be processed, but no more. [Bug: ??]. --- ChangeLog | 8 ++++++++ generic/tclIO.c | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ce98788..8d0b251 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2000-04-05 Andreas Kupries + + * generic/tclIO.c (Tcl_UnstackChannel, line 1831): Force interest + mask to the correct value after an unstack and re-initializing + the notifier via the watchProc. Without this the first fileevent + after an unstack will come through and be processed, but no + more. [Bug: ??]. + 2000-03-04 Brent Welch * {win,unix}/Makefile.in: added dependency of tclStubInit.c on tcl.decls diff --git a/generic/tclIO.c b/generic/tclIO.c index 117acaa..f3f91c0 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.19 1999/12/21 23:58:03 hobbs Exp $ + * RCS: @(#) $Id: tclIO.c,v 1.20 2000/04/05 19:00:41 kupries Exp $ */ #include "tclInt.h" @@ -1828,6 +1828,7 @@ Tcl_UnstackChannel (interp, chan) chanPtr->interestMask = 0; (chanPtr->typePtr->watchProc) (chanPtr->instanceData, interest); + chanPtr->interestMask = interest; } } else { -- cgit v0.12