]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/radius/radius.cpp
Block all signals in threads other than main
[stg.git] / projects / stargazer / plugins / other / radius / radius.cpp
index 6a02ce4f3d7ff328779d41dee45a2df41eb676f3..c827330f0a7db7cd3791ef2a65d84cea6edd7327 100644 (file)
@@ -258,6 +258,10 @@ return 0;
 //-----------------------------------------------------------------------------
 void * RADIUS::Run(void * d)
 {
+sigset_t signalSet;
+sigfillset(&signalSet);
+pthread_sigmask(SIG_BLOCK, &signalSet, NULL);
+
 RADIUS * rad = (RADIUS *)d;
 RAD_PACKET packet;