mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
xwayland: close pipe fds on set_cloexec() error
This commit is contained in:
parent
db69dcf767
commit
d18670b922
1 changed files with 2 additions and 0 deletions
|
@ -358,6 +358,8 @@ static bool server_start(struct wlr_xwayland_server *server) {
|
||||||
}
|
}
|
||||||
if (!set_cloexec(notify_fd[0], true)) {
|
if (!set_cloexec(notify_fd[0], true)) {
|
||||||
wlr_log(WLR_ERROR, "Failed to set CLOEXEC on FD");
|
wlr_log(WLR_ERROR, "Failed to set CLOEXEC on FD");
|
||||||
|
close(notify_fd[0]);
|
||||||
|
close(notify_fd[1]);
|
||||||
server_finish_process(server);
|
server_finish_process(server);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue