uloop: fix event flags processing on mac os x

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2013-06-18 11:51:50 +02:00
parent e386259632
commit 35cee2c206

View file

@ -179,6 +179,7 @@ static int uloop_fetch_events(int timeout)
else if (!ev) else if (!ev)
cur->fd = NULL; cur->fd = NULL;
cur->events = ev;
if (u->flags & ULOOP_EDGE_DEFER) { if (u->flags & ULOOP_EDGE_DEFER) {
u->flags &= ~ULOOP_EDGE_DEFER; u->flags &= ~ULOOP_EDGE_DEFER;
u->flags |= ULOOP_EDGE_TRIGGER; u->flags |= ULOOP_EDGE_TRIGGER;