diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-11 17:56:45 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-11 17:56:45 +0000 |
| commit | e5edf7a52b93f2124eb1a44b56089f7d27826b53 (patch) | |
| tree | 9920d99ef172122314d80b60b76a8e5173cf4f09 /render.c | |
| parent | Merge branch 'xassert-false' (diff) | |
| parent | reaper: monitor SIGCHLD using the FDM instead of via a signalfd (diff) | |
Merge branch 'fdm-signal-handling'
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |
