summaryrefslogtreecommitdiff
path: root/evport.c
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2007-11-27 01:39:10 +0000
committerNiels Provos <provos@gmail.com>2007-11-27 01:39:10 +0000
commit5f3e31596b1a231a6041b9a1302d8059293a9b02 (patch)
treef1ce1a980302c251b84a4152ca76ba0d57d6d704 /evport.c
parenta7a7a1904507bb7fcc22a3c045c030d2837c3510 (diff)
downloadlibevent-5f3e31596b1a231a6041b9a1302d8059293a9b02.tar.gz
move EV_PERSIST handling out of the event backends
svn:r555
Diffstat (limited to 'evport.c')
-rw-r--r--evport.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/evport.c b/evport.c
index d3ba5960..76688e0e 100644
--- a/evport.c
+++ b/evport.c
@@ -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 */