]> git.stg.codes - stg.git/blobdiff - projects/stargazer/eventloop.cpp
New style tut-headers
[stg.git] / projects / stargazer / eventloop.cpp
index dd17de9b07a3c9ee6f488817b38fc9dcc8925adb..6cc59c94bde7d039c225e976d13adfbdf99181f1 100644 (file)
@@ -1,3 +1,4 @@
+#include <csignal>
 #include <cerrno>
 #include <cstring>
 
@@ -53,6 +54,10 @@ return NULL;
 
 void EVENT_LOOP::Runner()
 {
+sigset_t signalSet;
+sigfillset(&signalSet);
+pthread_sigmask(SIG_BLOCK, &signalSet, NULL);
+
 _stopped = false;
 printfd(__FILE__, "EVENT_LOOP::Runner - Before start\n");
 while (_running)