Skip to content
Tcl Source Code History Of Ticket 219006
Login

History Of Ticket 219006

Artifacts Associated With Ticket 219006

  1. Ticket change [c23a6b8798] (rid 111454) by nobody on 2000-10-26 01:09:14:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "49. Threading"
    10. title initialized to: "tcl with threads will not exit"
    11. type initialized to: "Bug"
  2. Ticket change [4920b1e7d9] (rid 100010) by welch on 2000-10-26 08:33:08:

    1. closedate changed to: "2000-10-26T01:33:08"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"