sway

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

commit 1b2cd93212508913451fe6b9549f4b172925a4f6
parent 50a31a6c88cf29d0ce43ded49ec5c10e6f59f4bf
Author: Scott Anderson <ascent12@hotmail.com>
Date:   Sat,  8 Apr 2017 00:45:31 +1200

Removed explicitly setting file descriptors to -1

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

diff --git a/sway/ipc-server.c b/sway/ipc-server.c @@ -194,15 +194,12 @@ int ipc_client_handle_readable(int client_fd, uint32_t mask, void *data) { if (mask & WLC_EVENT_ERROR) { sway_log(L_ERROR, "IPC Client socket error, removing client"); - client->fd = -1; ipc_client_disconnect(client); return 0; } if (mask & WLC_EVENT_HANGUP) { sway_log(L_DEBUG, "Client %d hung up", client->fd); - close(client->fd); - client->fd = -1; ipc_client_disconnect(client); return 0; }