Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9ed9f69f963f8b5433a4249cf8ffca3691935e97
Ticket: 1958930fffffffffffffffffffffffffffffffff
exec with pipes and fileevents leaks ~2Mb everytime
User & Date: ferrieux on 2008-05-09 01:05:34
Changes

  1. icomment:
    Logged In: YES 
    user_id=496139
    Originator: NO
    
    Gosh, just noticed the MS documentation says that the leak is the initial stack of the thread !
    This might explain the variability of the size, since default stack size is largely in the hand of the OS.
    A quick workaround would be to minimize the stack size of PipeReaderThread, who doesn't need 2M...
    
    I also tried DisconnectNamedPipe(), but the poor guy blocks until all pending IO complete, so back to square one :-(
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"