Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 82f605bd52f3ab5e18b4041af9bcadb05843cc97
Ticket: 1343161fffffffffffffffffffffffffffffffff
exec implemenation fails to close() open file descriptors
User & Date: illumino on 2005-11-01 17:53:03
Changes

  1. assignee changed to: "vincentdarley"
  2. icomment:
    Logged In: YES 
    user_id=426773
    
    No, I'd call it a BUG or at least an UNDOCUMENTED FEATURE
    :-), as the language provides no way to access the relevant
    system calls to do the IMHO correct thing (not give away
    private file descriptors) to child processes.
    
    Without fork() & close() access, how do I stop the pollution
    of child processes? I don't see it as the child executables'
    responsibility to cleanup the mess created by the parent
    process. In C & Perl if I fork() a child process I have the
    opportunity to cleanup any open file descriptors before
    issuing and exec() system call, as I should I opened them.
    
    While I can see that additional code could be a FEATURE
    REQUEST, I feel that polluting child processes is a BUG -
    but each to there own opinion.
    
    
    
    
  3. login: "illumino"
  4. mimetype: "text/plain"
  5. username: "illumino"