diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-04 01:43:24 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-04 01:43:24 +0200 |
commit | db36f0dfe863e2fe20bcb4e8ef4ba06579ab2e53 (patch) | |
tree | 63dd4e3d03cf25a8478e2d1a7f6823ce56141e5f /seatd/client.c | |
parent | a8204ebceac760519d8653a10fedad6f21e8c11c (diff) |
client: Sanitize shutdown/kill mechanism
Diffstat (limited to 'seatd/client.c')
-rw-r--r-- | seatd/client.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/seatd/client.c b/seatd/client.c index 60e6d55..1adc2d9 100644 --- a/seatd/client.c +++ b/seatd/client.c @@ -76,8 +76,6 @@ void client_kill(struct client *client) { assert(client); if (client->connection.fd != -1) { shutdown(client->connection.fd, SHUT_RDWR); - close(client->connection.fd); - client->connection.fd = -1; }; if (client->seat != NULL) { seat_remove_client(client); @@ -96,7 +94,6 @@ void client_destroy(struct client *client) { client->event_source = NULL; } if (client->connection.fd != -1) { - shutdown(client->connection.fd, SHUT_RDWR); close(client->connection.fd); client->connection.fd = -1; } |