summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes4
-rw-r--r--ev.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/Changes b/Changes
index b060273..f6aa0f6 100644
--- a/Changes
+++ b/Changes
@@ -4,6 +4,10 @@ TODO: ev_time_freeze, ev_time_thaw
TODO: ev_walk
TODO: ev_stop_all
TODO: fix signal handling(?) under win32
+ - do not leave the event loop early just because we have no active
+ watchers, fixing a problem when embedding a kqueue loop
+ that has active kernel events but no registered watchers
+ (reported by blacksand blacksand).
- correctly zero the idx values for arrays, so destroying and
reinitialising the default loop actually works (patch by
Malek Hadj-Ali).
diff --git a/ev.c b/ev.c
index 1b31139..ead4022 100644
--- a/ev.c
+++ b/ev.c
@@ -1999,9 +1999,6 @@ ev_loop (EV_P_ int flags)
call_pending (EV_A);
}
- if (expect_false (!activecnt))
- break;
-
/* we might have forked, so reify kernel state if necessary */
if (expect_false (postfork))
loop_fork (EV_A);