Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c1719acb3f4ba189c732f02463e8170cf7661697
Ticket: 2270477fffffffffffffffffffffffffffffffff
TclFinalizeIOSubsystem can loop endlessly
User & Date: ferrieux on 2008-12-02 05:04:23
Changes

  1. icomment:
    Yes :)
    Notice that the second hunk of Andreas' modified patch only applies to the latest 8.4.x (where he had applied my unfortunate first trial). If you want to apply to 8.4.19, remove that second hunk. The only thing left is:
    
    --- tcl84.orig/generic/tclIO.c2008-12-01 13:36:03.000000000 -0800
    +++ tcl84/generic/tclIO.c2008-12-01 13:32:36.000000000 -0800
    @@ -235,7 +235,7 @@
          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;
         }
    
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"