X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/2fde047707205b8d8f1c71482d2df57105217e17..8ee1afd13859937076f9a9ff5e3420d3304f524e:/ev.c diff --git a/ev.c b/ev.c index 8a09326..e09fc84 100644 --- a/ev.c +++ b/ev.c @@ -613,7 +613,7 @@ int ev_loop_done; void ev_loop (int flags) { double block; - ev_loop_done = flags & EVLOOP_ONESHOT ? 1 : 0; + ev_loop_done = flags & (EVLOOP_ONESHOT | EVLOOP_NONBLOCK) ? 1 : 0; do { @@ -742,11 +742,16 @@ evio_start (struct ev_io *w) ++fdchangecnt; array_needsize (fdchanges, fdchangemax, fdchangecnt, ); fdchanges [fdchangecnt - 1] = fd; + + if (w->fd == 9) + printf ("start %p:%x\n", w, w->events);//D } void evio_stop (struct ev_io *w) { + if (w->fd == 9) + printf ("stop %p:%x\n", w, w->events);//D ev_clear ((W)w); if (!ev_is_active (w)) return;