]> git.sesse.net Git - cubemap/blobdiff - thread.cpp
Support UDP packets larger than 4 kB.
[cubemap] / thread.cpp
index 2aaf34f11441cefe3befcba7b33cc08c6d4f6db6..72bc320b0b32359dcbbe51352b2df8ca77850a45 100644 (file)
@@ -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) {