Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 402448246c500bf1697e563bac12b6112850f0c7
Ticket: 1958930fffffffffffffffffffffffffffffffff
exec with pipes and fileevents leaks ~2Mb everytime
User & Date: ferrieux on 2008-05-07 13:34:51
Changes

  1. icomment:
    Logged In: YES 
    user_id=496139
    Originator: NO
    
    David, while I agree with you that [update] is dangerous here in that potentially it will only superficially skim the event queue, I don't understand the 2M leak yet. Closing from within a callback or not doesn't change much from the notifier's PoV...
    
    Moreover, in this specific case, the EOF will never happen since the other side of the $out pipe stays open in the parent.
    To fix that I'd suggest closing $out_w and $in_r immediately after the [exec &].
    
    Continuing investigations...
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"