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:
1
server.c
1
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);
|
||||
|
||||
Reference in New Issue
Block a user