X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=thread.cpp;h=72bc320b0b32359dcbbe51352b2df8ca77850a45;hp=bd4cfd1790288e6dcb712820b3bc6725b9548732;hb=74cd48ffef90d7d0752e37a4515e4ecfb68f7c9d;hpb=0cb56be70f7ca4f4564eea892a99d20032359a1d 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) {