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
{
++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;