summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2009-04-15 09:51:19 +0000
committerroot <root>2009-04-15 09:51:19 +0000
commitb297584953bdc7c2ea0f79983e11b838852b02aa (patch)
tree94e26c95f917891fadfdb18617f5e41bd2eeeee5
parent843eb29c6d0212cd66bb5487816166647c4bcd79 (diff)
*** empty log message ***
-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);