Overview
| Artifact ID: | bf5d7c90655cc02461b39787312d85ea74653792 |
|---|---|
| Ticket: | 3541646fffffffffffffffffffffffffffffffff
Don't panic on triggerPipe overrun |
| User & Date: | ferrieux on 2012-07-09 16:12:37 |
Changes
- assignee changed to: "nijtmans"
- cmimetype changed to: "text/plain"
- comment changed to:
As detected by Vikki on thread https://groups.google.com/group/comp.lang.tcl/tree/browse_frm/thread/b08745216b7b4932/cca074d98284b134?hl=en&rnum=1&_done=%2Fgroup%2Fcomp.lang.tcl%2Fbrowse_frm%2Fthread%2Fb08745216b7b4932%2Fd0d28843efbd42a7%3Fhl%3Den%26#doc_cca074d98284b134 when a write on the notifier's triggerPipe returns EAGAIN (because the stream of notifier configuration updates is too fast for the thread to drain the pipe), we now panic, starting from this commit: File unix/tclUnixNotfy.c 2009-12-16 23:25:59 - part of checkin [e52afe7fa4] on branch trunk - Fix gcc warning: ignoring return value of ‘write’, declared with attribute warn_unused_result CONSTify functions TclpGetUserHome and TclSetPreInitScript (TIP #27) (user: nijtmans ) [annotate] This too heavy handed. As explained in the above thread, in this situation the notifier will be constantly woken up, so losing one of these "wake-ups" is not an issue (one wake up can serve several updates). Note that this only applies to the \0 signal (wake-up). For the 'q' signal (for notifier finalization), things are trickier: - blocking mode is still out of the question since we're holding the notifierMutex. In this situation it would lead to a deadlock. - losing the 'q' is problematic since we'd never end the finalization So I would advise a switch to a lockless scheme for the 'q' (which is okay since it is a monotonic flag). Assigning to Jan as author of the offending commit ;-)
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "7 High"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "ferrieux"
- subsystem changed to: "01. Notifier"
- title changed to: "Don't panic on triggerPipe overrun"
- type changed to: "Bug"