diff --git a/daemon.cpp b/daemon.cpp index 5afd036..7c92aa5 100644 --- a/daemon.cpp +++ b/daemon.cpp @@ -299,6 +299,8 @@ int main(int argc, char* argv[]) { error("ERROR writing to socket"); close(newsockfd); } + shutdown(sockfd, SHUT_WR); + shutdown(newsockfd, SHUT_WR); } /**