mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 18:10:23 +00:00
pathd: add meaningful names to threads
Signed-off-by: Javier Garcia <javier.garcia@voltanet.io>
This commit is contained in:
parent
4168228f25
commit
5ffdc11eda
@ -185,7 +185,7 @@ int pcep_ctrl_initialize(struct thread_master *main_thread,
|
||||
PCEP_DEBUG("Initializing pcep module controller");
|
||||
|
||||
/* Create and start the FRR pthread */
|
||||
*fpt = frr_pthread_new(&attr, "PCEP thread", "pcep");
|
||||
*fpt = frr_pthread_new(&attr, "PCEP thread", "pcep_controller");
|
||||
if (*fpt == NULL) {
|
||||
flog_err(EC_PATH_SYSTEM_CALL,
|
||||
"failed to initialize PCEP thread");
|
||||
|
@ -285,7 +285,7 @@ int pcep_lib_pthread_create_cb(pthread_t *thread_id, const pthread_attr_t *attr,
|
||||
.start = pcep_lib_pthread_start_passthrough,
|
||||
.stop = pcep_lib_pthread_stop_cb};
|
||||
struct frr_pthread *fpt =
|
||||
frr_pthread_new(&fpt_attr, thread_name, "pcep");
|
||||
frr_pthread_new(&fpt_attr, thread_name, "pcep_lib");
|
||||
if (fpt == NULL) {
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user