From 90631adb9beda188bd00494f1a84446c0b94d0f9 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 13 Nov 2018 12:07:58 -0800 Subject: Improve multithreading support for OneService (faster, dynamic adjustment of thread count based on HW concurrency). --- one.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'one.cpp') diff --git a/one.cpp b/one.cpp index b48e4396..7ee818af 100644 --- a/one.cpp +++ b/one.cpp @@ -1354,12 +1354,14 @@ int main(int argc,char **argv) #ifdef __UNIX_LIKE__ signal(SIGHUP,&_sighandlerHup); signal(SIGPIPE,SIG_IGN); + signal(SIGIO,SIG_IGN); signal(SIGUSR1,SIG_IGN); signal(SIGUSR2,SIG_IGN); signal(SIGALRM,SIG_IGN); signal(SIGINT,&_sighandlerQuit); signal(SIGTERM,&_sighandlerQuit); signal(SIGQUIT,&_sighandlerQuit); + signal(SIGINT,&_sighandlerQuit); /* Ensure that there are no inherited file descriptors open from a previous * incarnation. This is a hack to ensure that GitHub issue #61 or variants -- cgit v1.2.3