Skip to content
Permalink
Browse files
Fix undefined sigmask in indexer
Two lines were commented, so that final result used unitialized value.
Let's correct it. It fixes (probably) Github#246
  • Loading branch information
klirichek committed Jun 25, 2019
1 parent 271cc48 commit 58dcbb779c4c30ca1560460c78e35ba114b83716
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/indexer.cpp
@@ -1448,7 +1448,7 @@ void SetSignalHandlers ()
// sa.sa_flags = SA_NOCLDSTOP;
// sa.sa_handler = SIG_IGN; if ( sigaction ( SIGCHLD, &sa, NULL )!=0 ) break;

sa.sa_flags |= SA_RESETHAND;
sa.sa_flags = SA_RESETHAND;
sa.sa_handler = sigsegv; if ( sigaction ( SIGSEGV, &sa, NULL )!=0 ) break;
sa.sa_handler = sigsegv; if ( sigaction ( SIGBUS, &sa, NULL )!=0 ) break;
sa.sa_handler = sigsegv; if ( sigaction ( SIGABRT, &sa, NULL )!=0 ) break;

0 comments on commit 58dcbb7

Please sign in to comment.