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 89f49b5bc7
commit 37220fc189
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1,6 +1,7 @@
#include "render.h"
#include <string.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <sys/time.h>
@ -1227,6 +1228,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);