From 11be027fcf2958c31c54d7ee40d5883c7a0e2b45 Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 11 Sep 2024 16:08:33 +0000 Subject: [PATCH] i hope it works git-svn-id: file:///raid/svn-personal/okuu/trunk@12 7d206d2a-66c2-044b-96de-ba755a9b3ba8 --- Bot/bot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bot/bot.c b/Bot/bot.c index 4ff0b0a..8da91cb 100644 --- a/Bot/bot.c +++ b/Bot/bot.c @@ -42,7 +42,7 @@ extern int ircport; int ok_sock; struct sockaddr_in ok_addr; -void ok_close(int sock) { close(sock); } +void ok_close(int sock) { shutdown(sock, SHUT_RDWR);close(sock); } void ok_bot_kill(int sig) { fprintf(stderr, "Shutdown\n"); -- 2.43.0