Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3f1b72d2ca0f97b53a3a777066609b7d94edb028
Ticket: 219255ffffffffffffffffffffffffffffffffff
Closing a pipe to a busy process blocks even when -blocking
User & Date: oehhar on 2014-11-04 10:59:51
Changes

  1. icomment:
    I have made the tests on:
    
       *   TCL 8.5.12
       *   TCL 8.6.3rc1
    
    and there is no block, so the issue does not arise.
    
    Platform: WIndows Vista 32 bit, Compiled with makefilevc and vc6.
    
    Harald
    
    <verbatim>
    C:\test>tcl8.6.3\win\Release\tclsh86t.exe
    % set pipe [open "| C:/test/tcl8512/bin/tclsh85.exe doforever.tcl" r+]
    file6b5cc0
    % fconfigure $pipe -blocking 0
    % close $pipe
    % exit
    
    C:\test>tcl8512\bin\tclsh85.exe
    % set pipe [open "| C:/test/tcl8512/bin/tclsh85.exe doforever.tcl" r+]
    file1aa5e28
    % fconfigure $pipe -blocking 0
    % close $pipe
    % exit
    </verbatim>
    
  2. login: "oehhar"
  3. mimetype: "text/x-fossil-wiki"
  4. username: "oehhar"