Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b6b942cd36c31613e4da889e3c21a0ad9fb202b2
Ticket: 219255ffffffffffffffffffffffffffffffffff
Closing a pipe to a busy process blocks even when -blocking
User & Date: dkf on 2014-11-03 17:44:09
Changes

  1. assignee changed to: "aku"
  2. closer changed to: "nobody"
  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. icomment: "Wasn't there something done in this area recently?"
  5. login: "dkf"
  6. mimetype: "text/html"
  7. resolution changed to: "Remind"
  8. severity changed to: "Minor"
  9. title changed to:
    Closing a pipe to a busy process blocks even when -blocking
    
  10. username: "dkf"