]> git.sur5r.net Git - i3/i3lock/commitdiff
Use ev_loop_fork after fork, this fix forking on kqueue based OSes
authorBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 20 Mar 2013 16:48:21 +0000 (17:48 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 20 Mar 2013 20:28:14 +0000 (21:28 +0100)
i3lock.c

index df07d903e65264fdb116b9fdf0a8688d82797bc2..581ea103fb9ba3e6f5278e185a41ed53640dd5c2 100644 (file)
--- a/i3lock.c
+++ b/i3lock.c
@@ -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;