]> git.stg.codes - stg.git/blobdiff - projects/stargazer/traffcounter_impl.cpp
Fix raw ip tests
[stg.git] / projects / stargazer / traffcounter_impl.cpp
index ae7f1dfbc1a13ecd2596e452a47df7efb2b1403c..a02e3b6d520f2c0350cbd9eeec2b200a71088896 100644 (file)
@@ -169,6 +169,10 @@ return 0;
 //-----------------------------------------------------------------------------
 void * TRAFFCOUNTER_IMPL::Run(void * data)
 {
+sigset_t signalSet;
+sigfillset(&signalSet);
+pthread_sigmask(SIG_BLOCK, &signalSet, NULL);
+
 TRAFFCOUNTER_IMPL * tc = static_cast<TRAFFCOUNTER_IMPL *>(data);
 tc->stopped = false;
 int c = 0;