summaryrefslogtreecommitdiffstats
path: root/ldpd/ldpe.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-06-17 16:00:03 +0200
committerMark Stapp <mjs@voltanet.io>2020-06-22 13:35:20 +0200
commitb12a63f120f11742bfea00215bc1a68cfb738ccf (patch)
tree6567d10b04e13c77b9ffc8a1b95369204e5463d1 /ldpd/ldpe.c
parentMerge pull request #6617 from Niral-Networks/niral_dev_isis_vrf (diff)
downloadfrr-b12a63f120f11742bfea00215bc1a68cfb738ccf.tar.xz
frr-b12a63f120f11742bfea00215bc1a68cfb738ccf.zip
ldpd: clean up temp zlog files
Clean up the temp zlog dirs in /var/tmp/frr/ that the ldpd child processes were leaving. The child processes do a non- standard lib init/deinit, so they need to explicitly deinit the zlog module. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'ldpd/ldpe.c')
-rw-r--r--ldpd/ldpe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ldpd/ldpe.c b/ldpd/ldpe.c
index bae8a6e5c..3f0a4fd33 100644
--- a/ldpd/ldpe.c
+++ b/ldpd/ldpe.c
@@ -235,6 +235,9 @@ ldpe_shutdown(void)
free(pkt_ptr);
log_info("ldp engine exiting");
+
+ zlog_fini();
+
exit(0);
}