X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=thread.cpp;fp=thread.cpp;h=72bc320b0b32359dcbbe51352b2df8ca77850a45;hp=2aaf34f11441cefe3befcba7b33cc08c6d4f6db6;hb=7b3d494100ef1063578b1ef76818baee4ab53ada;hpb=dc109293b2644d5f1ac85a3f02b3584e82dcf690 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) {