diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-10 15:22:36 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-12 09:53:10 +0000 |
| commit | 37220fc1899796b56352ee54bb4133cb1a1ee4d0 (patch) | |
| tree | e3a44007e2e758b25ed46b061725738707ef51ce | |
| parent | main: monitor SIGINT+SIGTERM using the FDM (diff) | |
render: block all signals in the rendering threads
| -rw-r--r-- | render.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |
