X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=thread.cpp;h=72bc320b0b32359dcbbe51352b2df8ca77850a45;hp=2aaf34f11441cefe3befcba7b33cc08c6d4f6db6;hb=74cd48ffef90d7d0752e37a4515e4ecfb68f7c9d;hpb=562cf44b96b5c0260d1a1ab18b2dd2408b6d1fc8 diff --git a/thread.cpp b/thread.cpp index 2aaf34f..72bc320 100644 --- a/thread.cpp +++ b/thread.cpp @@ -40,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) {