The X socket MUST keep us alive.
We must not unref the loop for the X socket, that's our reason to live ! Signed-off-by: Pierre Habouzit <madcoder@debian.org>
This commit is contained in:
parent
93d4031a69
commit
4617f0ba34
|
@ -367,7 +367,6 @@ main(int argc, char **argv)
|
|||
xfd = xcb_get_file_descriptor(globalconf.connection);
|
||||
ev_io_init(&xio, &a_xcb_io_cb, xfd, EV_READ);
|
||||
ev_io_start(globalconf.loop, &xio);
|
||||
ev_unref(globalconf.loop);
|
||||
ev_check_init(&xcheck, &a_xcb_check_cb);
|
||||
ev_check_start(globalconf.loop, &xcheck);
|
||||
ev_unref(globalconf.loop);
|
||||
|
|
Loading…
Reference in New Issue