]> git.llucax.com Git - software/libev.git/commitdiff
*** empty log message *** rel-1_4
authorroot <root>
Tue, 27 Nov 2007 11:11:13 +0000 (11:11 +0000)
committerroot <root>
Tue, 27 Nov 2007 11:11:13 +0000 (11:11 +0000)
ev.c

diff --git a/ev.c b/ev.c
index bf20d1aaf1d37dccb81c80b4c87f482fd4bd06c6..f868d7e49e5f2f2b1ddaaac87721ae042682e23e 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -1279,12 +1279,14 @@ ev_loop (EV_P_ int flags)
   while (activecnt)
     {
       /* we might have forked, so reify kernel state if necessary */
   while (activecnt)
     {
       /* we might have forked, so reify kernel state if necessary */
-      if (expect_false (postfork))
-        if (forkcnt)
-          {
-            queue_events (EV_A_ (W *)forks, forkcnt, EV_FORK);
-            call_pending (EV_A);
-          }
+      #if EV_FORK_ENABLE
+        if (expect_false (postfork))
+          if (forkcnt)
+            {
+              queue_events (EV_A_ (W *)forks, forkcnt, EV_FORK);
+              call_pending (EV_A);
+            }
+      #endif
 
       /* queue check watchers (and execute them) */
       if (expect_false (preparecnt))
 
       /* queue check watchers (and execute them) */
       if (expect_false (preparecnt))