From 0ff463f4df8e085ba88f8ede735f16b140a2bf8e Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 21 Apr 2013 12:48:27 +0200 Subject: [PATCH] Fix a Valgrind hit that could cause an undefined set of signals to be blocked. --- thread.cpp | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.39.2