]> git.sesse.net Git - cubemap/blobdiff - thread.cpp
Tweak the MutexLock implementation slightly, so as to confuse Coverity less.
[cubemap] / thread.cpp
index bd4cfd1790288e6dcb712820b3bc6725b9548732..72bc320b0b32359dcbbe51352b2df8ca77850a45 100644 (file)
@@ -1,6 +1,5 @@
 #include <assert.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <poll.h>
 #include <signal.h>
 #include <stdio.h>
@@ -41,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) {