Set thread name of run-as worker process
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 26 Apr 2021 22:09:54 +0000 (18:09 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 28 Apr 2021 21:21:59 +0000 (17:21 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ifd89ad19a17d96975f712bcd298588f2fc28d04f

src/common/runas.c

index 849635c7f8fe9174676985ba8b0839da21d18c19..fc7b02be740d3636d0f25c514e58a6afc2c6c95d 100644 (file)
@@ -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.");
This page took 0.026395 seconds and 4 git commands to generate.