git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Block all signals earlie, to inherit by all nested threads
[stg.git]
/
stglibs
/
ia.lib
/
ia.cpp
diff --git
a/stglibs/ia.lib/ia.cpp
b/stglibs/ia.lib/ia.cpp
index abecef09f552fa4ff4f8a949402c4bc313e65429..81bd75fb7df8ec48b7bc198bb21642f2342af54f 100644
(file)
--- a/
stglibs/ia.lib/ia.cpp
+++ b/
stglibs/ia.lib/ia.cpp
@@
-63,6
+63,10
@@
#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;