Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e7c665d8edf54a4e4a677f9f251990f7e4611c04
Ticket: 3608957fffffffffffffffffffffffffffffffff
Events posted by Tcl_QueueEvent linger in queue
User & Date: jenglish on 2013-03-24 23:39:52
Changes

  1. icomment:
    The signal handler in the attached code calls ckalloc() and Tcl_QueueEvent(), neither of which are async-signal safe.
    
    Probable cause of problem in threaded build is that nothing calls Tcl_AlertNotifier(), so the event loop never wakes up.  Note that Tcl_AlertNotifier() isn't async-signal safe either.
    
    Recommended approach is to use Tcl_CreateFileHandler and the write-to-pipe technique.
    
    
    
  2. login: "jenglish"
  3. mimetype: "text/plain"
  4. username: "jenglish"