]> git.llucax.com Git - software/libev.git/blobdiff - ev.c
Add exceptions support to C++ interface.
[software/libev.git] / ev.c
diff --git a/ev.c b/ev.c
index 8a915a4a6e58faba252d3f2a1b608731a3616c7f..d024017fe249eea3d041f920f95127652c4f7f44 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -1168,6 +1168,7 @@ loop_fork (EV_P)
         syserr ("(libev) error creating pipe");
 
       siginit (EV_A);
         syserr ("(libev) error creating pipe");
 
       siginit (EV_A);
+      sigcb (EV_A_ &sigev, EV_READ);
     }
 
   postfork = 0;
     }
 
   postfork = 0;
@@ -1199,7 +1200,7 @@ ev_loop_destroy (EV_P)
 void
 ev_loop_fork (EV_P)
 {
 void
 ev_loop_fork (EV_P)
 {
-  postfork = 1;
+  postfork = 1; // must be in line with ev_default_fork
 }
 
 #endif
 }
 
 #endif
@@ -1273,7 +1274,7 @@ ev_default_fork (void)
 #endif
 
   if (backend)
 #endif
 
   if (backend)
-    postfork = 1;
+    postfork = 1; // must be in line with ev_loop_fork
 }
 
 /*****************************************************************************/
 }
 
 /*****************************************************************************/