From: Steinar H. Gunderson Date: Sun, 21 Apr 2013 10:48:27 +0000 (+0200) Subject: Fix a Valgrind hit that could cause an undefined set of signals to be blocked. X-Git-Tag: 1.0.0~48^2~1 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=0ff463f4df8e085ba88f8ede735f16b140a2bf8e;ds=sidebyside Fix a Valgrind hit that could cause an undefined set of signals to be blocked. --- 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) {