uloop: fix event flags processing on mac os x
authorFelix Fietkau <nbd@openwrt.org>
Tue, 18 Jun 2013 09:51:50 +0000 (11:51 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 18 Jun 2013 10:05:09 +0000 (12:05 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
uloop.c

diff --git a/uloop.c b/uloop.c
index ed7d87a90da0bd45737b54e34a5575f5f76166d5..bf13199f881db3b6d5cb92fd3002e846fa888304 100644 (file)
--- a/uloop.c
+++ b/uloop.c
@@ -179,6 +179,7 @@ static int uloop_fetch_events(int timeout)
                else if (!ev)
                        cur->fd = NULL;
 
+               cur->events = ev;
                if (u->flags & ULOOP_EDGE_DEFER) {
                        u->flags &= ~ULOOP_EDGE_DEFER;
                        u->flags |= ULOOP_EDGE_TRIGGER;