]> granicus.if.org Git - libevent/commit
Restore fast-path event_reinit() for slower backends
authorNick Mathewson <nickm@torproject.org>
Fri, 27 Jan 2012 19:30:41 +0000 (14:30 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 27 Jan 2012 19:30:41 +0000 (14:30 -0500)
commit2c4b5de16a9b80fc564681018956f29077c28c9a
treec3c1f7bfbaeb5df9c3ccc6d89c38221dab94556e
parent272033efe575a9dc7ec6f123a96afba5c69ff1c6
Restore fast-path event_reinit() for slower backends

We used to use the needs_reinit flag in struct eventop to indicate
whether an event backend had shared state across a fork(), and
therefore would require us to construct a new event backend.  But
when we realized that the signal notification fds and the thread
notification fds would always be shared across forks, we stopped
looking at it.

This patch restores the old behavior so that poll, select, and
win32select don't need to do a linear scan over all pending
fds/signals when they do a reinit.  Their life is hard enough
already.
event.c
signal.c