diff options
author | Donald Sharp <sharpd@nvidia.com> | 2021-10-20 14:00:02 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2021-10-20 14:00:02 +0200 |
commit | e15a935c06b8b339940926d908dc250ecd6bda0d (patch) | |
tree | c8b9a5bf5931751855ea757accc406b682b678a3 /ospfd/ospfd.c | |
parent | Merge pull request #9730 from AnuradhaKaruppiah/evpn-recv-lttng (diff) | |
download | frr-e15a935c06b8b339940926d908dc250ecd6bda0d.tar.xz frr-e15a935c06b8b339940926d908dc250ecd6bda0d.zip |
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>
Diffstat (limited to 'ospfd/ospfd.c')
-rw-r--r-- | ospfd/ospfd.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |