Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 62a9a947df21b6047b69e509f7b55e16e0d9d2150b07795209c47904757ecfab
Ticket: 21dbc600ae0a005a7f879a05580550a8da257b14
exec hangs, iff stdin & stdout both were previously closed.
User & Date: serhiy.storchaka on 2026-10-13 18:34:38
Changes

  1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
  2. icomment:
    Still hangs with 8.6.17, 9.0 and 9.1. With stdin and stdout closed, the pipe
    for the output of the child gets descriptors 0 and 1, and
    <code>TclpCloseFile()</code> never closes 0, 1 and 2, so the parent keeps the
    write end open and never sees the end of the output.
    
    Proposed fix in branch [/timeline?r=exec-closed-stdio|exec-closed-stdio]:
    move pipes and files created for a pipeline above descriptor 2. Test
    exec-23.1.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"