]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: Close log files before exiting
authorDonald Sharp <sharpd@nvidia.com>
Wed, 20 Oct 2021 12:00:02 +0000 (08:00 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 20 Oct 2021 12:00:02 +0000 (08:00 -0400)
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>
ospfd/ospfd.c

index 766be607780503d1b2f233ddb5ab870aab7425fb..1e1057dc39e1acb324edcc60aa69b072404f847e 100644 (file)
@@ -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);
        }