summaryrefslogtreecommitdiffstats
path: root/pathd/pathd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-10-20 14:00:57 +0200
committerDonald Sharp <sharpd@nvidia.com>2021-10-20 14:00:57 +0200
commit6865ffa758d358ba2ed1f94bef9ad53b05652db9 (patch)
tree92b521bfa9de9ad0a9cf41b82187549969ddc3f6 /pathd/pathd.c
parentospfd: Close log files before exiting (diff)
downloadfrr-6865ffa758d358ba2ed1f94bef9ad53b05652db9.tar.xz
frr-6865ffa758d358ba2ed1f94bef9ad53b05652db9.zip
pathd: Call frr_fini() before exit
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>
Diffstat (limited to '')
-rw-r--r--pathd/pathd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pathd/pathd.c b/pathd/pathd.c
index 90b872728..7f6d34f75 100644
--- a/pathd/pathd.c
+++ b/pathd/pathd.c
@@ -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)