diff options
author | Niels Provos <provos@gmail.com> | 2007-11-27 01:39:10 +0000 |
---|---|---|
committer | Niels Provos <provos@gmail.com> | 2007-11-27 01:39:10 +0000 |
commit | 5f3e31596b1a231a6041b9a1302d8059293a9b02 (patch) | |
tree | f1ce1a980302c251b84a4152ca76ba0d57d6d704 /evport.c | |
parent | a7a7a1904507bb7fcc22a3c045c030d2837c3510 (diff) | |
download | libevent-5f3e31596b1a231a6041b9a1302d8059293a9b02.tar.gz |
move EV_PERSIST handling out of the event backends
svn:r555
Diffstat (limited to 'evport.c')
-rw-r--r-- | evport.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -375,21 +375,16 @@ evport_dispatch(struct event_base *base, void *arg, struct timeval *tv) fdi = &(epdp->ed_fds[fd]); /* - * We now check for each of the possible events (READ or WRITE). - * If the event is not persistent, then we delete it. Then, we - * activate the event (which will cause its callback to be - * executed). + * We now check for each of the possible events (READ + * or WRITE). Then, we activate the event (which will + * cause its callback to be executed). */ if ((res & EV_READ) && ((ev = fdi->fdi_revt) != NULL)) { - if (!(ev->ev_events & EV_PERSIST)) - event_del(ev); event_active(ev, res, 1); } if ((res & EV_WRITE) && ((ev = fdi->fdi_wevt) != NULL)) { - if (!(ev->ev_events & EV_PERSIST)) - event_del(ev); event_active(ev, res, 1); } } /* end of all events gotten */ |