]> git.stg.codes - stg.git/blobdiff - stglibs/ia.lib/ia.cpp
Block all signals in threads other than main
[stg.git] / stglibs / ia.lib / ia.cpp
index abecef09f552fa4ff4f8a949402c4bc313e65429..81bd75fb7df8ec48b7bc198bb21642f2342af54f 100644 (file)
 #include <sys/time.h>
 void * RunL(void * data)
 {
+sigset_t signalSet;
+sigfillset(&signalSet);
+pthread_sigmask(SIG_BLOCK, &signalSet, NULL);
+
 
 IA_CLIENT_PROT * c = (IA_CLIENT_PROT *)data;
 static int a = 0;