summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-10-20 08:00:02 -0400
committerDonald Sharp <sharpd@nvidia.com>2021-10-20 08:00:02 -0400
commite15a935c06b8b339940926d908dc250ecd6bda0d (patch)
treec8b9a5bf5931751855ea757accc406b682b678a3
parente9f7b2b597ad8c6947ce3b7238e89391e4f9f863 (diff)
ospfd: Close log files before exiting
When doing a normal exit from ospf we should close the log file as that we are leaving a bunch of unterminated logging processes by not doing so. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-rw-r--r--ospfd/ospfd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c
index 766be60778..1e1057dc39 100644
--- a/ospfd/ospfd.c
+++ b/ospfd/ospfd.c
@@ -582,6 +582,7 @@ static void ospf_deferred_shutdown_finish(struct ospf *ospf)
/* ospfd being shut-down? If so, was this the last ospf instance? */
if (CHECK_FLAG(om->options, OSPF_MASTER_SHUTDOWN)
&& (listcount(om->ospf) == 0)) {
+ frr_fini();
exit(0);
}