CVSROOT:        /cvs
Module name:    src
Changes by:     n...@cvs.openbsd.org    2012/02/08 02:01:00

Modified files:
        lib/libevent   : kqueue.c 

Log message:
r1.27 changed libevent to fire a read event when kqueue returned EBADF
(and several other things, particularly EPIPE) on a file
descriptor. This causes Google Chrome to die (probably due to a bug in
Chrome but finding that is next to impossible at the moment).

It's not really clear what libevent should when an invalid fd is added -
the poll backend doesn't fire an event and select exits the event
loop. Until this is settled, change kqueue to match poll and ignore
EBADF, keeping the behaviour r1.27 fixed on EPIPE.

Fix from robert@.

Reply via email to