Browse Source

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

master
Baptiste Daroussin 12 years ago
committed by Michael Stapelberg
parent
commit
d8a1da69fb
  1. 2
      i3lock.c

2
i3lock.c

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

Loading…
Cancel
Save