sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 9d7d73df7f7888a3ea8420662fa5aa2ef6e3bd82
parent ad942708a71df087efd5a99eaf2d8efe05fdf0b8
Author: Eric Engestrom <eric@engestrom.ch>
Date:   Mon,  2 May 2016 15:49:33 +0100

sway: fix IPC resource leak

Diffstat:
Msway/ipc-server.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/sway/ipc-server.c b/sway/ipc-server.c @@ -138,6 +138,7 @@ int ipc_handle_connection(int fd, uint32_t mask, void *data) { int flags; if ((flags=fcntl(client_fd, F_GETFD)) == -1 || fcntl(client_fd, F_SETFD, flags|FD_CLOEXEC) == -1) { sway_log_errno(L_INFO, "Unable to set CLOEXEC on IPC client socket"); + close(client_fd); return 0; }