--- libev/ev.c 2019/12/24 13:24:29 1.516 +++ libev/ev.c 2019/12/24 13:52:58 1.517 @@ -5078,6 +5078,7 @@ } } +#if EV_FORK_ENABLE static void embed_fork_cb (EV_P_ ev_fork *fork_w, int revents) { @@ -5094,6 +5095,7 @@ ev_embed_start (EV_A_ w); } +#endif #if 0 static void @@ -5124,8 +5126,10 @@ ev_set_priority (&w->prepare, EV_MINPRI); ev_prepare_start (EV_A_ &w->prepare); +#if EV_FORK_ENABLE ev_fork_init (&w->fork, embed_fork_cb); ev_fork_start (EV_A_ &w->fork); +#endif /*ev_idle_init (&w->idle, e,bed_idle_cb);*/ @@ -5145,7 +5149,9 @@ ev_io_stop (EV_A_ &w->io); ev_prepare_stop (EV_A_ &w->prepare); +#if EV_FORK_ENABLE ev_fork_stop (EV_A_ &w->fork); +#endif ev_stop (EV_A_ (W)w);