From: Donald Sharp Date: Wed, 20 Oct 2021 12:00:02 +0000 (-0400) Subject: ospfd: Close log files before exiting X-Git-Tag: base_8.2~314^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e15a935c06b8b339940926d908dc250ecd6bda0d;p=matthieu%2Ffrr.git 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 --- 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); }