From b5e76923a801c3e5509c5ac144bb5ced01989589 Mon Sep 17 00:00:00 2001 From: fumiama Date: Tue, 23 Feb 2021 23:06:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dop=E4=B8=8A=E9=97=AA=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server.c b/server.c index 22bf090..42c6be3 100644 --- a/server.c +++ b/server.c @@ -288,6 +288,7 @@ void handle_quit(int signo) { void acceptTimer(void *p) { THREADTIMER *timer = timerPointerOf(p); + signal(SIGPIPE, handle_pipe); while(*timer->thread && !pthread_kill(*timer->thread, 0)) { sleep(MAXWAITSEC); puts("Check accept status");