+ /*
+ * Theoretically, we could leak a shm if the application crashes
+ * between open and unlink. Disable signals on this thread for
+ * increased safety against this scenario.
+ */
+ sigfillset(&all_sigs);
+ ret = pthread_sigmask(SIG_BLOCK, &all_sigs, &orig_sigs);
+ if (ret == -1) {
+ PERROR("pthread_sigmask");
+ goto error_pthread_sigmask;
+ }
+