Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 47edeb6eb309d71c929834f0268e23612cc8e0f5
Ticket: 2407783fffffffffffffffffffffffffffffffff
Seek causes IO channel to be shared between all interps
User & Date: andreas_kupries on 2008-12-10 06:06:03
Changes

  1. icomment:
    Ok, I was possibly not too clear.
    SetChannelFromAny (SCFA) uses Tcl_GetChannel.
    However if and only if the intrep is not already tclChannelType. 
    If the intrep is properly tclChannelType it pulls the ChannelState*
    directly out of the intrep, and now we have direct access to a channel
    which may not be known to the interpreter we are in, because the intrep
    was set in a different interpreter.
    So, even with a properly typed intrep we have to recheck that the channel
    we got is actually known in the current interp, and the same.
    
    Best would be to not only store channelstate*, but also interp* of the interp which set the intrep. The moment we are in a different interp we invalidate and recompute the intrep. sort of like cmd resolution intreps.
    
    
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"