diff --git a/compositor/xwayland.c b/compositor/xwayland.c index 6113fa51..cf84c882 100644 --- a/compositor/xwayland.c +++ b/compositor/xwayland.c @@ -159,6 +159,7 @@ spawn_xserver(void *user_data, const char *display, int abstract_fd, int unix_fd pid = fork(); switch (pid) { case 0: + setsid(); /* SOCK_CLOEXEC closes both ends, so we need to unset * the flag on the client fd. */ ret = fdstr_clear_cloexec_fd1(&wayland_socket);