Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 674f83fa7d5740e9da5e6c2e03a6b43df313ac73
Ticket: 1343211fffffffffffffffffffffffffffffffff
exec implemenation fails to close() open file descriptors
User & Date: dkf on 2006-01-09 17:48:51
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    
    It's not clear what tracker item this is a duplicate of.
    
    Also, it's not clear why the fcntl(fd,F_SETFD,FD_CLOEXEC);
    calls which the call is doing (and has done for ages; the
    calls in the socket code date back at least as far as our
    CVS archive goes!) are not causing things to behave correctly.
    
    Is this a Solaris9 bug? Everything seems to work for me
    under Linux. Are you using the channels as stdin/out/err for
    the subprocesses (that's the only time Tcl turns off the
    CLOEXEC flag)? Or do you believe that there are FDs being
    leaked? Is it possible to have a short script that
    duplicates the fault (preferably only using tclsh instances
    so that we can instrument everything!)
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"