X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/91c2e643914a5e26e943053c60055bb839204d38..73861ad6c4342633fff7dcd5913bcaa2749dba09:/ev.c?ds=sidebyside diff --git a/ev.c b/ev.c index 8a92fb0..3f9fe2b 100644 --- a/ev.c +++ b/ev.c @@ -927,8 +927,8 @@ ev_recommended_backends (void) unsigned int ev_embeddable_backends (void) { - return EVBACKEND_EPOLL - | EVBACKEND_KQUEUE + /* epoll embeddability broken on all linux versions up to at least 2.6.23 */ + return EVBACKEND_KQUEUE | EVBACKEND_PORT; } @@ -2215,7 +2215,7 @@ ev_embed_start (EV_P_ ev_embed *w) { struct ev_loop *loop = w->other; assert (("loop to be embedded is not embeddable", backend & ev_embeddable_backends ())); - ev_io_init (&w->io, embed_io_cb, backend_fd, EV_WRITE); + ev_io_init (&w->io, embed_io_cb, backend_fd, EV_READ); } ev_set_priority (&w->io, ev_priority (w));