mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-29 06:46:35 -04:00
Fixed headers for FreeBSD
This commit is contained in:
parent
6bac1bd257
commit
6d17515646
7 changed files with 28 additions and 0 deletions
5
render.c
5
render.c
|
|
@ -807,8 +807,13 @@ render_worker_thread(void *_ctx)
|
|||
char proc_title[16];
|
||||
snprintf(proc_title, sizeof(proc_title), "foot:render:%d", my_id);
|
||||
|
||||
#if __linux__
|
||||
if (prctl(PR_SET_NAME, proc_title, 0, 0, 0) < 0)
|
||||
LOG_ERRNO("render worker %d: failed to set process title", my_id);
|
||||
#elif __FreeBSD__
|
||||
setproctitle(proc_title);
|
||||
#endif
|
||||
|
||||
|
||||
sem_t *start = &term->render.workers.start;
|
||||
sem_t *done = &term->render.workers.done;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue