]> git.puffer.fish Git - mirror/frr.git/commitdiff
pathd: Call frr_fini() before exit
authorDonald Sharp <sharpd@nvidia.com>
Wed, 20 Oct 2021 12:00:57 +0000 (08:00 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 20 Oct 2021 12:00:57 +0000 (08:00 -0400)
pathd was never calling frr_fini and as such the
proper shutdown was not happening for libfrr.
This includes logging.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
pathd/pathd.c

index 90b87272844ab8107dc48d9efbf52030d10265ce..7f6d34f752b29e77a4ec5eceac53efa7a5cf57b3 100644 (file)
@@ -22,6 +22,7 @@
 #include "log.h"
 #include "lib_errors.h"
 #include "network.h"
+#include "libfrr.h"
 
 #include "pathd/pathd.h"
 #include "pathd/path_zebra.h"
@@ -1223,6 +1224,7 @@ void pathd_shutdown(void)
 {
        path_ted_teardown();
        srte_clean_zebra();
+       frr_fini();
 }
 
 void trigger_pathd_candidate_created(struct srte_candidate *candidate)