aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2024-01-17 02:18:36 +0300
committerSimon Ser <contact@emersion.fr>2024-01-17 15:44:37 +0000
commitd18670b9228bf82a16c750f948784ce029dde857 (patch)
treec33c1d67f418c187e3c14d945fef892e2ba519ae /xwayland
parentdb69dcf767679d57e31c3cf5f8bb91abf45fc6bc (diff)
xwayland: close pipe fds on set_cloexec() error
Diffstat (limited to 'xwayland')
-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;
}