]> granicus.if.org Git - libevent/commit
Fix a deadlock related to event-base notification. Diagnosed by Zhou Li, Avi Bab...
authorNick Mathewson <nickm@torproject.org>
Mon, 5 Jul 2010 17:17:47 +0000 (13:17 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 5 Jul 2010 17:17:47 +0000 (13:17 -0400)
commit17522d2af846bdeb18bd7e39527caea03a021afa
treed1bab86ba27c74f837008112a41889b5de4f878a
parentd89fdba424c654445d0f927670691d9b55f20846
Fix a deadlock related to event-base notification.  Diagnosed by Zhou Li, Avi Bab, and Scott Lamb.

The problem was that the thread doing the notification could block on
write in evthread_notify_base_default while holding the th_base_lock.
The main thread would never drain th_notify_fd[0], since it would need
th_base_lock to actually trigger events.
event.c