mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-29 06:46:35 -04:00
Pass new proc_title as a arg and use format string
This commit is contained in:
parent
d3c4810885
commit
12c370ee19
1 changed files with 1 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -816,7 +816,7 @@ render_worker_thread(void *_ctx)
|
||||||
if (prctl(PR_SET_NAME, proc_title, 0, 0, 0) < 0)
|
if (prctl(PR_SET_NAME, proc_title, 0, 0, 0) < 0)
|
||||||
LOG_ERRNO("render worker %d: failed to set process title", my_id);
|
LOG_ERRNO("render worker %d: failed to set process title", my_id);
|
||||||
#elif __FreeBSD__
|
#elif __FreeBSD__
|
||||||
setproctitle(proc_title);
|
setproctitle("%s", proc_title);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue