- for (w = anfd->head; w; w = w->next)
- wev |= w->events;
-
- if (anfd->wev != wev)
- {
- int mode = wev ? anfd->wev ? EPOLL_CTL_MOD : EPOLL_CTL_ADD : EPOLL_CTL_DEL;
- struct epoll_event ev;
- ev.events = wev;
- ev.data.fd = fd;
- fprintf (stderr, "reify %d,%d,%d m%d (r=%d)\n", fd, anfd->wev, wev, mode,//D
- epoll_ctl (epoll_fd, mode, fd, &ev)
- );//D
- anfd->wev = wev;
- }
+ fprintf (stderr, "reify %d,%d,%d m%d (r=%d)\n", fd, oev, nev, mode,//D
+ epoll_ctl (epoll_fd, mode, fd, &ev)
+ );//D