Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 006ba06a89b5eae7a433f4abe2b4b9a48d99598b
Ticket: 218120ffffffffffffffffffffffffffffffffff
exec command fails with EINTR
User & Date: nobody on 2000-10-26 00:53:21
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1941 Bug
    Version: 8.0.4
    SubmitDate: '1999-04-27'
    LastModified: '2000-04-26'
    Severity: SER
    Status: Closed
    Submitter: pat
    ChangedBy: hobbs
    OS: Solaris
    OSVersion: 2.6
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '2000-04-26'
    
    
    Name:
    
    Tethys
    
    
    
    Extensions:
    
    BLT, expect (although sometimes none)
    
    
    
    CustomShell:
    
    Applied Jan Nijtman's plus/dash patches.
    
    
    
    Comments:
    
    I'm almost 100% sure my patch is NOT correct. However, it appears to be
    
        a usable workaround for the time being. I don't know enough about Tcl
    
        channel handling to fix it properly.
    
    
    
    ReproducibleScript:
    
    Most Tcl scripts containing an "exec" command that returns data.
    
        
    
        wish -f foo.tcl
    
        
    
        Note that *some* scripts work fine. Others (seemingly at random) fail.
    
        An earlier posting to comp.lang.tcl pointed me to GetInput(), but the
    
        recommended patch (treating EINTR the same as EAGAIN / EWOULDBLOCK)
    
        didn't work for me.
    
    
    
    ObservedBehavior:
    
    An error message:
    
        
    
        error reading output from command: interrupted system call
    
    
    
    DesiredBehavior:
    
    The "exec" command not causing an error. The same scripts work fine with
    
        tcl7.6
    
    
    
    Patch:
    
    *** tclIO.c     Mon Apr 26 13:46:35 1999
    
    --- tclIO.c.orig        Thu Apr 22 18:15:52 1999
    
    ***************
    
    *** 2717,2726 ****
    
                } else {
    
                    panic("Blocking channel driver did not block on input");
    
                }
    
    - #ifndef TREAT_EINTR_AS_ERROR
    
    -       } else if (result == EINTR) {
    
    -               result = 0;
    
    - #endif /* TREAT_EINTR_AS_ERROR */
    
            } else {
    
                Tcl_SetErrno(result);
    
            }
    
    --- 2717,2722 ----
    
    
    
    PatchFiles:
    
    tclIO.c
    
    
    
    
    
    We need something reproducable to go any further with this report. 
    -- 04/26/2000 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: "exec command fails with EINTR"
  11. type changed to: "Bug"