Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 786efe175e24d16aea8459c4dfcaf2f215aab7f6
Ticket: 219149ffffffffffffffffffffffffffffffffff
bad interaction of input redirect from named pipe with backg
User & Date: nobody on 2000-10-26 05:02:20
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 950 Bug
    Version: 8.0p2
    SubmitDate: '1998-12-14'
    LastModified: '1999-12-07'
    Severity: SER
    Status: Assigned
    Submitter: pat
    ChangedBy: hobbs
    OS: Linux
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name: Harald
    
    ReproducibleScript:
    Run the following script.
    
    #!/bin/sh
    # exec tclsh8.0 "$0" 
    
    exec mkfifo fifo
    puts [exec cat <fifo >@stdout &]
    
    ObservedBehavior:
    Although there is an `&' at the end
    of the exec-arguments, the exec does
    not return.
    
    DesiredBehavior:
    If `&' is at the end of exec-args,
    exec should always return soon, independent of input redirection.
    
    
    There is a not-so-perfect workaround. The fifo can be opened with NONBLOCK and the handle to the opened fifo can be used to redirect input. However then the child-process sees a non-blocking
    input channel, which is probably not what was intended.
    --
    Verified in 8.2.2 on Solaris. 
    -- 12/07/1999 hobbs
    
    
    
  4. foundin changed to: "obsolete: 8.0p2"
  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: "62. (unused)"
  10. title changed to:
    bad interaction of input redirect from named pipe with backg
    
  11. type changed to: "Bug"