--- libev/ev.c 2012/05/14 19:09:58 1.432 +++ libev/ev.c 2012/05/15 13:03:20 1.433 @@ -2357,7 +2357,7 @@ #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);