aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xwayland/server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xwayland/server.c b/xwayland/server.c
index fde3d610..6dd42246 100644
--- a/xwayland/server.c
+++ b/xwayland/server.c
@@ -358,6 +358,8 @@ static bool server_start(struct wlr_xwayland_server *server) {
}
if (!set_cloexec(notify_fd[0], true)) {
wlr_log(WLR_ERROR, "Failed to set CLOEXEC on FD");
+ close(notify_fd[0]);
+ close(notify_fd[1]);
server_finish_process(server);
return false;
}