mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 15:07:51 +00:00
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>
This commit is contained in:
parent
e9f7b2b597
commit
e15a935c06
@ -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? */
|
/* ospfd being shut-down? If so, was this the last ospf instance? */
|
||||||
if (CHECK_FLAG(om->options, OSPF_MASTER_SHUTDOWN)
|
if (CHECK_FLAG(om->options, OSPF_MASTER_SHUTDOWN)
|
||||||
&& (listcount(om->ospf) == 0)) {
|
&& (listcount(om->ospf) == 0)) {
|
||||||
|
frr_fini();
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user