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