Skip to content
Tcl Source Code View Ticket
Login

View Ticket

repeated "exec"s eventually fail

Closed / Fixed218678ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:04:02
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
welch Closed ticket [218678ffff]. [History diff]2000-10-26 08:27:10
dgp Ticket [218678ffff]: 4 changes [History diff]2001-04-05 08:20:13
Log in (anonymous is fine) to add a comment.