Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fdf69637da4032d3445b101ef40629538498a149
Ticket: 1958930fffffffffffffffffffffffffffffffff
exec with pipes and fileevents leaks ~2Mb everytime
User & Date: ferrieux on 2008-05-08 18:41:32
Changes

  1. icomment:
    Logged In: YES 
    user_id=496139
    Originator: NO
    
    Mark, please don't go to bgexec right now, we're just on the verge of integrating [pipe] (well, ti will be [chan pipe] I guess) in the core ;-)
    
    As to my prior interrogations, I have found the missing piece in the puzzle: Yes, Tclx creates raw pipes, but No, it doesn't leave them unadorned to the core ! Indeed, what I have just realized, is that Tcl_MakeFileChannel does introspect the type, and in the pipe case calls TclpCreateCommandChannel with an empty pid list ! This explains everything, including the resort to the bad TerminateThread when the reader thread is blocked in ReadFile etc...
    
    David, do you agree with the following conclusion:
      - TclX's [pipe] fully interoperates with the (now obsolete) machinery in tclWinPipe.c
      - Hence it can be ported to the core (TIP304) with no change and no worries
      - It does have the old TerminateThread issue.
      - This could be solved in post-NT era by direct wait on handles
      - But this last move is orthogonal to TIP 304 and can wait a bit.
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"