]> git.llucax.com Git - software/libev.git/blobdiff - ev.c
Use #if !EV_MULTIPLICITY instead of #ifndef because it should be defined always.
[software/libev.git] / ev.c
diff --git a/ev.c b/ev.c
index 8a915a4a6e58faba252d3f2a1b608731a3616c7f..a14b940230d938559ee6e2b87b2eb0cac9a9357c 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -1168,6 +1168,7 @@ loop_fork (EV_P)
         syserr ("(libev) error creating pipe");
 
       siginit (EV_A);
+      sigcb (EV_A_ &sigev, EV_READ);
     }
 
   postfork = 0;
@@ -1199,7 +1200,7 @@ ev_loop_destroy (EV_P)
 void
 ev_loop_fork (EV_P)
 {
-  postfork = 1;
+  postfork = 1; /* must be in line with ev_default_fork */
 }
 
 #endif
@@ -1273,7 +1274,7 @@ ev_default_fork (void)
 #endif
 
   if (backend)
-    postfork = 1;
+    postfork = 1; /* must be in line with ev_loop_fork */
 }
 
 /*****************************************************************************/