Pass new proc_title as a arg and use format string

This commit is contained in:
Alexander Sieg 2020-04-12 15:38:09 +02:00
parent d3c4810885
commit 12c370ee19

View file

@ -816,7 +816,7 @@ render_worker_thread(void *_ctx)
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);
setproctitle("%s", proc_title);
#endif