]> git.puffer.fish Git - mirror/frr.git/commitdiff
pathd: add meaningful names to threads 7886/head
authorJavier Garcia <javier.garcia@voltanet.io>
Tue, 19 Jan 2021 10:42:48 +0000 (11:42 +0100)
committerJavier Garcia <javier.garcia@voltanet.io>
Tue, 19 Jan 2021 10:42:48 +0000 (11:42 +0100)
Signed-off-by: Javier Garcia <javier.garcia@voltanet.io>
pathd/path_pcep_controller.c
pathd/path_pcep_lib.c

index 255503b4591b52ed136550ebb0706a3add0790e8..f4871a4d8dfc79aa51a9ca8f52f803618455ed75 100644 (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");
index fc72be89793715ecfd5ea3e149e77cbc39ab81ad..bb6bfb133641453504476963997d4be939bb3f48 100644 (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;
        }