]> git.stg.codes - stg.git/blobdiff - projects/sgauthstress/proto.cpp
Added encoding of some strings.
[stg.git] / projects / sgauthstress / proto.cpp
index 2e97fd2a0990c165c8d3089a0096866440f1a722..692c6946de9e27bba00295248def0ec364191ff4 100644 (file)
@@ -1,6 +1,10 @@
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
 #include <netdb.h>
 #include <arpa/inet.h>
 
+#include <csignal>
 #include <cerrno>
 #include <cstring>
 #include <cassert>
@@ -77,6 +81,10 @@ pthread_mutex_destroy(&mutex);
 
 void * PROTO::Runner(void * data)
 {
+sigset_t signalSet;
+sigfillset(&signalSet);
+pthread_sigmask(SIG_BLOCK, &signalSet, NULL);
+
 PROTO * protoPtr = static_cast<PROTO *>(data);
 protoPtr->Run();
 return NULL;