Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 305b38f58fd110bf5bc4b901a59b8c2873fd808a
Ticket: 1958930fffffffffffffffffffffffffffffffff
exec with pipes and fileevents leaks ~2Mb everytime
User & Date: davygrvy on 2008-05-08 00:14:08
Changes

  1. icomment:
    Logged In: YES 
    user_id=7549
    Originator: NO
    
    I have too much to say, not sure if I'll say it all in this one post.
    
    First, why does [close] exhibit the problem at all with pipes?  Easy, ReadFile() is not interruptible.  The purpose of the reader thread and the ReadFile() call inside it is to act as the alert mechanism.  But if pipe handles are waitable objects, then what's the purpose of that?  Again, easy..  under Win9x, pipe handles are _not_ waitable objects and that mess is needed to make the alert mechanism.  But the question really is, why was it forced to close before it was done?  That direction is not supported and can't easily be without kill.
    
    Second, what's wrong with [open], it does the same thing as [exec ... &] with the pipe creation?
    
    Brain lapse..  I lost my train of thought.
    
    
  2. login: "davygrvy"
  3. mimetype: "text/plain"
  4. username: "davygrvy"