From ebb958fe499fe17afb350eafe71810c73b0b296d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sat, 14 Aug 2021 12:59:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E8=A1=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.c b/server.c index c646a82..ac6e7c7 100644 --- a/server.c +++ b/server.c @@ -488,7 +488,7 @@ static void unimplemented(int client) { static pthread_attr_t attr; static pthread_t accept_thread; static socklen_t client_name_len = sizeof(client_name); -int accept_client(int server_sock) { +static int accept_client(int server_sock) { signal(SIGCHLD, SIG_IGN); signal(SIGQUIT, handle_quit); signal(SIGPIPE, handle_quit);