X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=thread.cpp;h=72bc320b0b32359dcbbe51352b2df8ca77850a45;hp=bd4cfd1790288e6dcb712820b3bc6725b9548732;hb=ee87623ba2bfd6060cf643b254fefa6f7d2e73f4;hpb=3fd8650ccf3da3960a946d8ac9abc305aec399ce diff --git a/thread.cpp b/thread.cpp index bd4cfd1..72bc320 100644 --- a/thread.cpp +++ b/thread.cpp @@ -1,6 +1,5 @@ #include #include -#include #include #include #include @@ -41,6 +40,7 @@ void *Thread::do_work_thunk(void *arg) // (This isn't strictly required, but it makes it easier to debug that indeed // SIGUSR1 was what woke us up.) sigset_t set; + sigemptyset(&set); sigaddset(&set, SIGHUP); int err = pthread_sigmask(SIG_BLOCK, &set, NULL); if (err != 0) {