mirror of
https://github.com/fumiama/simple-dict.git
synced 2026-06-30 08:50:25 +08:00
修复op上闪退
This commit is contained in:
1
server.c
1
server.c
@@ -288,6 +288,7 @@ void handle_quit(int signo) {
|
|||||||
|
|
||||||
void acceptTimer(void *p) {
|
void acceptTimer(void *p) {
|
||||||
THREADTIMER *timer = timerPointerOf(p);
|
THREADTIMER *timer = timerPointerOf(p);
|
||||||
|
signal(SIGPIPE, handle_pipe);
|
||||||
while(*timer->thread && !pthread_kill(*timer->thread, 0)) {
|
while(*timer->thread && !pthread_kill(*timer->thread, 0)) {
|
||||||
sleep(MAXWAITSEC);
|
sleep(MAXWAITSEC);
|
||||||
puts("Check accept status");
|
puts("Check accept status");
|
||||||
|
|||||||
Reference in New Issue
Block a user