Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: aeca5f3685844f655661af26044e47c492a2b8c1
Ticket: 1322866fffffffffffffffffffffffffffffffff
TclFinalizeIOSubsystem closes zero descriptor
User & Date: dkf on 2005-10-11 04:27:51
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    
    Thinking about this (not very deeply though) it seems to me
    that FD 0 (and 1 and 2) should only be magical (outside of
    the [exec] guts) if it is open when we init the IO
    subsystem. Otherwise, the special behaviour attached to
    stdin (stdout, stderr) should simply vanish. OK, that'll
    make a number of things unhappy, but it'll be up to script
    authors to deal with that (and it should at least be better
    than a crash!)
    
    Alternative is to hack around closed std channels by opening
    the platform's null device in their place. Not as elegant
    though.
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"