Skip to content

Commit 116ddc4

Browse files
committed
ignore SIGHUP and SIGPIPE
1 parent 0968d68 commit 116ddc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/corvus.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@ int main(int argc, const char *argv[])
387387
start_worker(i);
388388
}
389389

390+
signal(SIGHUP, SIG_IGN);
391+
signal(SIGPIPE, SIG_IGN);
390392
setup_signal();
391393

392394
LOG(INFO, "serve at 0.0.0.0:%d", config.bind);

0 commit comments

Comments
 (0)