Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5d2a245d144e072119910384ed8003c7ce52699829babd3b866d8858861881d6
Ticket: b78d94c049af5090a9ef1c4aaa8059aa45b98b59
Thread pool panics if stdin closed and IO performed in initcmd
User & Date: aleteoryx on 2025-02-22 04:11: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; 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. foundin changed to: "8.6 - Linux"
  3. login: "aleteoryx"
  4. mimetype: "text/plain"