aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc-server.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-04-07 08:49:47 -0400
committerGitHub <noreply@github.com>2017-04-07 08:49:47 -0400
commitcf95aebf691be478f1c6cbd925ee528080b1a8f1 (patch)
tree695a25ad9476d041ddeab6f45b67160eef6c7f72 /sway/ipc-server.c
parent50a31a6c88cf29d0ce43ded49ec5c10e6f59f4bf (diff)
parent1b2cd93212508913451fe6b9549f4b172925a4f6 (diff)
Merge pull request #1154 from ascent12/fix-1152
Removed explicitly setting file descriptors to -1
Diffstat (limited to 'sway/ipc-server.c')
-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 3600cab2..984e6754 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;
}