From e15a935c06b8b339940926d908dc250ecd6bda0d Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 20 Oct 2021 08:00:02 -0400 Subject: 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 --- ospfd/ospfd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ospfd/ospfd.c') diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index 766be6077..1e1057dc3 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); } -- cgit v1.2.3