Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3ceb85c1ce9b094c801c5f21a4458ccc1872390a27156025c3e50d02f209fcba
Ticket: b78d94c049af5090a9ef1c4aaa8059aa45b98b59
Thread pool panics if stdin closed and IO performed in initcmd
User & Date: aleteoryx on 2025-02-22 03:03:54
Changes

  1. comment changed to:
    The following code panics with "Tcl_RegisterChannel: duplicate channel names". The IO call in the initcmd does not matter, and I discovered the issue with a `package require` call.
    
    ```
    package require Thread
    
    close stdin
    
    set pool [tpool::create -initcmd {
      open tmpfile w
    }]
    tpool::post $pool {}
    ```
    
  2. login: "aleteoryx"
  3. mimetype: "text/plain"