summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-12-01 21:48:00 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-12-01 21:48:00 (GMT)
commitb469f3b2e2a851db70448cdd4e1263eb3b20b512 (patch)
tree581c513ba2d78ed38dfb90bd75690e4475ac91dd /generic/tclIO.c
parent3dd500c10b81fef6d21f350fd71e164c9e02d2b5 (diff)
downloadtcl-b469f3b2e2a851db70448cdd4e1263eb3b20b512.zip
tcl-b469f3b2e2a851db70448cdd4e1263eb3b20b512.tar.gz
tcl-b469f3b2e2a851db70448cdd4e1263eb3b20b512.tar.bz2
* generic/tclIO.c (TclFinalizeIOSubsystem): Revised latest commit to
something that doesn't crash the test suite.
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r--generic/tclIO.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index 8b7dd2f..8e00054 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.31 2008/11/25 22:18:16 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclIO.c,v 1.61.2.32 2008/12/01 21:48:01 dgp Exp $
*/
#include "tclInt.h"
@@ -235,7 +235,7 @@ TclFinalizeIOSubsystem(void)
statePtr != NULL;
statePtr = statePtr->nextCSPtr) {
chanPtr = statePtr->topChanPtr;
- if (!(statePtr->flags & CHANNEL_DEAD)) {
+ if (!(statePtr->flags & (CHANNEL_INCLOSE|CHANNEL_CLOSED|CHANNEL_DEAD))) {
active = 1;
break;
}
@@ -302,8 +302,8 @@ TclFinalizeIOSubsystem(void)
*/
chanPtr->instanceData = NULL;
+ statePtr->flags |= CHANNEL_DEAD;
}
- statePtr->flags |= CHANNEL_DEAD;
}
}