mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
render: block all signals in the rendering threads
This commit is contained in:
parent
7c3a126b22
commit
34699ad3b2
1 changed files with 5 additions and 0 deletions
5
render.c
5
render.c
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue