uloop: fix edge trigger handling on mac os x
[project/libubox.git] / uloop.c
diff --git a/uloop.c b/uloop.c
index db8cacd..3746520 100644 (file)
--- a/uloop.c
+++ b/uloop.c
@@ -181,6 +181,7 @@ static int uloop_fetch_events(int timeout)
 
                if (u->flags & ULOOP_EDGE_DEFER) {
                        u->flags &= ~ULOOP_EDGE_DEFER;
+                       u->flags |= ULOOP_EDGE_TRIGGER;
                        register_kevent(u, u->flags);
                }
        }