pathd: add meaningful names to threads

Signed-off-by: Javier Garcia <javier.garcia@voltanet.io>
This commit is contained in:
Javier Garcia 2021-01-19 11:42:48 +01:00
parent 4168228f25
commit 5ffdc11eda
2 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ int pcep_ctrl_initialize(struct thread_master *main_thread,
PCEP_DEBUG("Initializing pcep module controller"); PCEP_DEBUG("Initializing pcep module controller");
/* Create and start the FRR pthread */ /* 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) { if (*fpt == NULL) {
flog_err(EC_PATH_SYSTEM_CALL, flog_err(EC_PATH_SYSTEM_CALL,
"failed to initialize PCEP thread"); "failed to initialize PCEP thread");

View File

@ -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, .start = pcep_lib_pthread_start_passthrough,
.stop = pcep_lib_pthread_stop_cb}; .stop = pcep_lib_pthread_stop_cb};
struct frr_pthread *fpt = struct frr_pthread *fpt =
frr_pthread_new(&fpt_attr, thread_name, "pcep"); frr_pthread_new(&fpt_attr, thread_name, "pcep_lib");
if (fpt == NULL) { if (fpt == NULL) {
return 1; return 1;
} }