Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9dda51d46bf12816e8c386cc1f70401082d54b9b
Ticket: 1350564fffffffffffffffffffffffffffffffff
Inadequate fcopy operation
User & Date: ferrieux on 2008-04-05 05:36:39
Changes

  1. icomment:
    Logged In: YES 
    user_id=496139
    Originator: NO
    
    Fixed.
    
    Attaching a patch (including the two other recent fixes to fcopy) refining the blindly symmetrical busy test (non-null csPtr) by a direction-specific one.
    The refined test is:
    
     #define BUSY_STATE(st,fl) \
        ((st)->csPtr && \
         ( (((fl)&TCL_READABLE)&&((st)->csPtr->readPtr==(st)->topChanPtr)) || \
           (((fl)&TCL_WRITABLE)&&((st)->csPtr->writePtr==(st)->topChanPtr))))
    
    Also attaching 4 test scripts:
     - fev[12].tcl: run in two separate tclsh's, use an async fcopy and a reverse fileevent readable.
     - inetc.tcl,noria.tcl: run in three tclsh's: one noria and two inetcs, this establishes a bidirectional fcopy: anything typed into one inetc is displayed on the other one and vice versa.
    
    Last minute: heck, I cannot attach any files since I'm not the reporter ! What can I do ?
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"