mirror of
https://github.com/fumiama/simple-http-server.git
synced 2026-06-10 21:16:26 +08:00
小修补
This commit is contained in:
2
server.c
2
server.c
@@ -488,7 +488,7 @@ static void unimplemented(int client) {
|
|||||||
static pthread_attr_t attr;
|
static pthread_attr_t attr;
|
||||||
static pthread_t accept_thread;
|
static pthread_t accept_thread;
|
||||||
static socklen_t client_name_len = sizeof(client_name);
|
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(SIGCHLD, SIG_IGN);
|
||||||
signal(SIGQUIT, handle_quit);
|
signal(SIGQUIT, handle_quit);
|
||||||
signal(SIGPIPE, handle_quit);
|
signal(SIGPIPE, handle_quit);
|
||||||
|
|||||||
Reference in New Issue
Block a user