X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=thread.cpp;fp=thread.cpp;h=98c743c594313704281c2360f2d5688c0c691cab;hp=bd4cfd1790288e6dcb712820b3bc6725b9548732;hb=0ff463f4df8e085ba88f8ede735f16b140a2bf8e;hpb=58d50f2d9710403ea7bddf0fb290a90777c8dd68 diff --git a/thread.cpp b/thread.cpp index bd4cfd1..98c743c 100644 --- a/thread.cpp +++ b/thread.cpp @@ -41,6 +41,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) {