Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cec6bc76b6999bb5eb152f860c9d2f0d2714e106
Ticket: 217834ffffffffffffffffffffffffffffffffff
"close" blocks even for non-blocking pipelines
User & Date: nobody on 2000-10-26 00:44:36
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1682 Bug
    Version: 8.0.3
    SubmitDate: '1999-03-31'
    LastModified: '1999-11-07'
    Severity: MED
    Status: Closed
    Submitter: pat
    ChangedBy: hobbs
    RelatedBugIDs: 710
    OS: Solaris
    OSVersion: SunOS hostname 5.7 Generic sun4u sparc SUNW,Ultra-5_10
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '1999-11-07'
    
    
    Name:David F. Skoll
    
    ReproducibleScript:
        I define this procedure in tclsh 8.0.3 on Solaris 2.7:
        
        proc nonblock {} {
            set fp [open "|sleep 120" "RDONLY NONBLOCK"]
            fconfigure $fp -blocking 0
            close $fp
        }
    
    ObservedBehavior:
        Reading the "close" manual page (and in fact perusing the Tcl source
        code) I expect this procedure to return immediately to its caller.
        However, the "close" blocks until the "sleep" exits.  I thought that for
        non-blocking command pipelines, close was non-blocking too and that the
        children were reaped in the background.  Is this a real bug or just
        misunderstanding on my part?
    
    DesiredBehavior:
        I expect an immediate return.
    
    
    
  4. foundin changed to: "obsolete: 8.0.3"
  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: ""close" blocks even for non-blocking pipelines"
  11. type changed to: "Bug"