Merge pull request #7886 from volta-networks/master

pathd: add meaningful names to threads
This commit is contained in:
Donald Sharp 2021-01-19 09:12:30 -05:00 committed by GitHub
commit 6351ea6ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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");
/* 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");

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,
.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;
}