Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dc8e9bc09b233198de0071b82783b5a7cc2f39858d884e60b2af08a495fceb97
Ticket: f4f44174e4c88a9132b19bcc4b68346a1d229fe1
protect notifier against signals
User & Date: serhiy.storchaka on 2026-10-21 10:13:57
Changes

  1. icomment:
    What remains is in TclX: <tt>Tcl_AsyncMark()</tt> is still not async-signal safe (it locks a mutex), and TclX still calls it from its signal handler (generic/tclXsignal.c), so the hang in the script above can still happen. With Tcl 9.0 TclX should call <tt>Tcl_AsyncMarkFromSignal(asyncHandler, signalNum)</tt> instead, which takes no mutex. 8.6 has no such API; there TclX would need its own self-pipe or <tt>sigwait()</tt> thread to call <tt>Tcl_AsyncMark()</tt> outside the signal handler.
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"