Skip to content

Commit

Permalink
Use ev_loop_fork after fork, this fix forking on kqueue based OSes
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt authored and stapelberg committed Mar 20, 2013
1 parent 006f9d3 commit d8a1da6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions i3lock.c
Expand Up @@ -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;

Expand Down

0 comments on commit d8a1da6

Please sign in to comment.