Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 47d116aa41926a363b5d248692adceb7e394f8282de97322cfeaad2294d9fbfa
Ticket: 2982713fffffffffffffffffffffffffffffffff
I cannot run exec command on Linux using Tcl/Tk
User & Date: serhiy.storchaka on 2026-10-17 07:12:30
Changes

  1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
  2. icomment:
    Reproduced when tclsh is started with SIGCHLD ignored, as by system() from a program which ignores it, or <nowiki>env --ignore-signal=CHLD tclsh</nowiki>: the kernel reaps the children itself and waitpid() fails with ECHILD.
    Proposed fix in branch [/timeline?r=tclsh-inherited-sigchld|tclsh-inherited-sigchld]: Tcl_MainEx() restores the default SIGCHLD handling if it is ignored. Applications which embed Tcl keep their own setting, as Tk now keeps the signal handlers of the embedding application on macOS ([https://core.tcl-lang.org/tk/tktview/989b1ccb98|Tk 989b1ccb98]). Test exec-24.1.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"