]> rtime.felk.cvut.cz Git - sojka/libev.git/commitdiff
*** empty log message ***
authorMarc Alexander Lehmann <libev@schmorp.de>
Tue, 15 May 2012 13:03:20 +0000 (13:03 +0000)
committerMarc Alexander Lehmann <libev@schmorp.de>
Tue, 15 May 2012 13:03:20 +0000 (13:03 +0000)
Changes
ev.c

diff --git a/Changes b/Changes
index db51dfa82a439ca0f6517e7ffc1c80b737972f17..76e5107e8956a2322d198c00d5160f8543d8e2e7 100644 (file)
--- a/Changes
+++ b/Changes
@@ -5,6 +5,8 @@ TODO: EV_STANDALONE == NO_HASSEL (do not use clock_gettime in ev_standalone)
 TODO: faq, process a thing in each iteration
 TODO: dbeugging tips, ev_verify, ev_init twice
 
+        - destroying a non-default loop would stop the global waitpid
+          watcher (Denis Bilenko).
        - queueing pending watchers of higher priority from a watcher now invokes
           them in a timely fashion (reported by Denis Bilenko).
        - add throw() to all libev functions that cannot throw exceptions, for
diff --git a/ev.c b/ev.c
index a3718ccb132f6d57d5b05f8af2ae61af329eb920..0e94222c7c09269b133276fb2c424818bf540e59 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -2357,7 +2357,7 @@ ev_loop_destroy (EV_P)
 #endif
 
 #if EV_CHILD_ENABLE
-  if (ev_is_active (&childev))
+  if (ev_is_default_loop (EV_A) && ev_is_active (&childev))
     {
       ev_ref (EV_A); /* child watcher */
       ev_signal_stop (EV_A_ &childev);