aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-04-08 00:45:31 +1200
committerScott Anderson <ascent12@hotmail.com>2017-04-08 00:45:31 +1200
commit1b2cd93212508913451fe6b9549f4b172925a4f6 (patch)
tree695a25ad9476d041ddeab6f45b67160eef6c7f72
parent50a31a6c88cf29d0ce43ded49ec5c10e6f59f4bf (diff)
downloadsway-1b2cd93212508913451fe6b9549f4b172925a4f6.zip
sway-1b2cd93212508913451fe6b9549f4b172925a4f6.tar.gz
sway-1b2cd93212508913451fe6b9549f4b172925a4f6.tar.bz2
Removed explicitly setting file descriptors to -1
-rw-r--r--sway/ipc-server.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index 3600cab..984e675 100644
--- 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;
}