Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2ba37c99c338763e36e8f7675b0f8fed9020b955
Ticket: 218678ffffffffffffffffffffffffffffffffff
repeated "exec"s eventually fail
User & Date: nobody on 2000-10-26 01:04:02
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1717 Bug
    Version: 8.0.4
    SubmitDate: '1999-04-05'
    LastModified: '1999-10-29'
    Severity: MED
    Status: Released
    Submitter: pat
    ChangedBy: hobbs
    OS: Windows 95
    FixedDate: '1999-10-29'
    FixedInVersion: 8.2
    ClosedDate: '2000-10-25'
    
    
    Name:  ian wild
    
    ReproducibleScript:
    # this script causes 8.0p2 to fail under Win95
    set script [info script]
    button .b -text "Press me" -command {
        exec [info nameofexecutable] -f $script &
        exit
    }
    pack .b
    
    ObservedBehavior:
    On Win95 after the eighth click the interpreter fails with a "can't
    dup stderr handle" message. 
    
    DesiredBehavior:
    The script should fork a copy of itself, then die.  I should be
    able to continue doing this all day.
    
    Comments:
    I'd guess each child is inheriting more and more handles it
    doesn't want.  Under Linux the script works perfectly (and
    /proc shows only three FDs open).
    
    This has been fixed in/before 8.2 (exec stuff reworked a
    couple of times since 8.0.4). 
    -- 10/29/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.0.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "60. NRE and coroutines"
  10. title changed to: "repeated "exec"s eventually fail"
  11. type changed to: "Bug"