Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dbfe7c5383fb2f03c3584b6326cc7063a059c344
Ticket: 219255ffffffffffffffffffffffffffffffffff
Closing a pipe to a busy process blocks even when -blocking
User & Date: nobody on 2000-10-26 05:04:13
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 5924 Bug
    Version: 8.3.1
    SubmitDate: '2000-06-20'
    LastModified: '2000-09-11'
    Severity: CRIT
    Status: Assigned
    Submitter: lfb
    ChangedBy: davidg
    RelatedBugIDs: 710
    OS: Windows NT
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Closing a pipe to a busy process blocks on Windows even after you have turned blocking off on the channel.
    
    Try running this script in a tclsh on Windows:
    set pipe [open "| tclsh.exe doforever.tcl" r+]
    fconfigure $pipe -blocking 0
    close $pipe
    
    Contents of doforever.tcl:
    while {1} {}
    
    Expected Result:
    The primary process closes the pipe and does not block.
    
    Actual Result:
    The primary process blocks.
    
    
    
    We discovered this problem in the Ajuba2 Server process pool.  If we try to close the pipe to a busy interpreter, the server blocks.
    --
    
    A related bug was fixed on the Unix side, but the Windows side uses
    a different sort of closedown functions.  Has to be further investigated. 
    -- 09/06/2000 hobbs
    
    
    
  4. foundin changed to: "obsolete: 8.3.1"
  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:
    Closing a pipe to a busy process blocks even when -blocking 
    
  11. type changed to: "Bug"