From: Nishi Date: Wed, 11 Sep 2024 16:08:33 +0000 (+0000) Subject: i hope it works X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=11be027fcf2958c31c54d7ee40d5883c7a0e2b45;p=okuu.git i hope it works git-svn-id: file:///raid/svn-personal/okuu/trunk@12 7d206d2a-66c2-044b-96de-ba755a9b3ba8 --- 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");