Use ev_loop_fork after fork, this fix forking on kqueue based OSes

pull/1/head
Baptiste Daroussin 2013-03-20 17:48:21 +01:00 committed by Michael Stapelberg
parent 006f9d3d7d
commit d8a1da69fb
1 changed files with 2 additions and 0 deletions

View File

@ -478,6 +478,8 @@ static void xcb_check_cb(EV_P_ ev_check *w, int revents) {
/* In the parent process, we exit */
if (fork() != 0)
exit(0);
ev_loop_fork(EV_DEFAULT);
}
break;