diff options
author | root <root> | 2007-12-01 22:57:20 +0000 |
---|---|---|
committer | root <root> | 2007-12-01 22:57:20 +0000 |
commit | 647706a2acbfa58a6fdf5fb3ab17f82833faa0b0 (patch) | |
tree | b6f8202d747b3463c612ce86bd018048c6fc9ce3 /ev.c | |
parent | 1e251ffd9e2bf720df7759c2eb3c807f5b0d474f (diff) |
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r-- | ev.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1344,7 +1344,7 @@ ev_loop (EV_P_ int flags) call_pending (EV_A); /* in case we recurse, ensure ordering stays nice and clean */ - for (;;) + while (expect_false (!activecnt)) { #ifndef _WIN32 if (expect_false (curpid)) /* penalise the forking check even more */ @@ -1386,7 +1386,7 @@ ev_loop (EV_P_ int flags) { ev_tstamp block; - if (flags & EVLOOP_NONBLOCK || idlecnt) + if (expect_false (flags & EVLOOP_NONBLOCK || idlecnt || !activecnt)) block = 0.; /* do not block at all */ else { |