1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-10 05:04:13 +08:00

handle pipe sig 2 prevent crash

This commit is contained in:
fumiama
2021-02-18 14:54:26 +08:00
parent 8d9f555a03
commit 6fb882fc68

View File

@@ -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);