Use ev_loop_fork after fork, this fix forking on kqueue based OSes
Patch status: merged
Patch by Baptiste Daroussin
To apply this patch, use:
curl http://cr.i3wm.org/patch/103/raw.patch | git am
b/i3lock.c
| 14 |
@@ -478,6 +478,8 @@ static void xcb_check_cb(EV_P_ ev_check *w, int revents) {
|
| 15 |
/* In the parent process, we exit */ |
| 16 |
if (fork() != 0) |
| 17 |
exit(0); |
| 18 |
+ |
| 19 |
+ ev_loop_fork(EV_DEFAULT); |
| 20 |
} |
| 21 |
break; |
| 22 |
|