Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d4ed70b82cf394160921e3d18384e7520ec2fd1a
Ticket: 1958930fffffffffffffffffffffffffffffffff
exec with pipes and fileevents leaks ~2Mb everytime
User & Date: ferrieux on 2008-05-30 06:43:36
Changes

  1. icomment:
    Logged In: YES 
    user_id=496139
    Originator: NO
    
    Will be trying the first of a two-step strategy shortly:
    
    (1) Since pipes are now waitable in all living Windows, replace the blocking ReadFile in PipeReaderThread with a WaitForMultipleObjects of both the pipe and the event object. This way, the thread will spend all its life in a state where it can be gracefully asked to leave by signalling the event, hence removing the need for TerminateThread.
    
    (2) Overhaul the pipe event source so that the pipe's handle is directly monitored by the notifier's central WaitForMultipleObjects.
    (For this one I would love to have David's help ;-)
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"