From 6fb882fc68d0249ffd4a128108120a43b292f1db Mon Sep 17 00:00:00 2001 From: fumiama Date: Thu, 18 Feb 2021 14:54:26 +0800 Subject: [PATCH] handle pipe sig 2 prevent crash --- server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server.c b/server.c index d1cca2f..25cc7a6 100644 --- a/server.c +++ b/server.c @@ -54,6 +54,7 @@ int freeAfterSend(int accept_fd, char *data, size_t length); int closeDict(FILE *fp); off_t fileSize(const char* fname); void handleAccept(void *accept_fd_p); +void handle_pipe(int signo); void handle_quit(int signo); int listenSocket(u_int try_times); FILE *openDict(int lock_type);