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
- 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.
- login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"