Artifacts Associated With Ticket 219006
Ticket change [c23a6b8798] (rid 111454) by nobody on 2000-10-26 01:09:14:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 3871 Bug Version: 8.2 SubmitDate: '1999-12-13' LastModified: '2000-04-25' Severity: CRIT Status: Released Submitter: techsupp ChangedBy: hobbs RelatedBugIDs: 3414 4139 OS: Solaris OSVersion: Solaris 2.5.1 , 2.6 , 2.7 FixedDate: '2000-04-25' FixedInVersion: 8.3.1 ClosedDate: '2000-10-25' Name: Amit Khivesara ReproducibleScript: In a tcl program if we do a ::system("") command which starts a child which is run in the background. e.g .::system("tail -f /etc/passwd&"). The program will not exit since the Notify Thread will not come out of the select in tclUnixNotify.c ObservedBehavior: This is because the pipe is closed by the other thread but the fork of the child in ::system still has the file descripter open. DesiredBehavior: It should exit. PatchFiles: The bug is in tclUnixNotify.c in method NotifierThreadProc. The fds should be FD_CLOEXEC. i.e. if (pipe(fds) != 0) { panic("NotifierThreadProc: could not create trigger pipe."); } /** Lines added are for BUG!!!*/ fcntl(fds[0],F_SETFD,FD_CLOEXEC); fcntl(fds[1],F_SETFD,FD_CLOEXEC); This is the same problem as was noted in 4139, fixed with different fix (sending 'q' through triggerPipe). -- 04/25/2000 hobbs - foundin initialized to: "obsolete: 8.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "49. Threading"
- title initialized to: "tcl with threads will not exit"
- type initialized to: "Bug"
Ticket change [4920b1e7d9] (rid 100010) by welch on 2000-10-26 08:33:08:
- closedate changed to: "2000-10-26T01:33:08"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"