xwayland: close pipe fds on set_cloexec() error

master
Kirill Primak 11 months ago committed by Simon Ser
parent db69dcf767
commit d18670b922

@ -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;
}

Loading…
Cancel
Save