render: block all signals in the rendering threads

This commit is contained in:
Daniel Eklöf 2021-02-10 16:22:36 +01:00
parent 7c3a126b22
commit 34699ad3b2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -3,6 +3,7 @@
#include <string.h>
#include <wctype.h>
#include <unistd.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <sys/time.h>
@ -1265,6 +1266,10 @@ render_worker_thread(void *_ctx)
const int my_id = ctx->my_id;
free(ctx);
sigset_t mask;
sigfillset(&mask);
pthread_sigmask(SIG_SETMASK, &mask, NULL);
char proc_title[16];
snprintf(proc_title, sizeof(proc_title), "foot:render:%d", my_id);