From: Francis Deslauriers Date: Mon, 26 Apr 2021 22:09:54 +0000 (-0400) Subject: Set thread name of run-as worker process X-Git-Tag: v2.13.0-rc2~47 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=535fd667cb5ec7f7b5f8a7b36a771eeeb1b5c644;p=lttng-tools.git Set thread name of run-as worker process Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau Change-Id: Ifd89ad19a17d96975f712bcd298588f2fc28d04f --- diff --git a/src/common/runas.c b/src/common/runas.c index 849635c7f..fc7b02be7 100644 --- a/src/common/runas.c +++ b/src/common/runas.c @@ -1299,6 +1299,9 @@ int run_as_create_worker_no_lock(const char *procname, reset_sighandler(); set_worker_sighandlers(); + + logger_set_thread_name("Run-as worker", true); + if (clean_up_func) { if (clean_up_func(clean_up_user_data) < 0) { ERR("Run-as post-fork clean-up failed, exiting.");