summaryrefslogtreecommitdiffstats
path: root/sharpd
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-06-11 17:16:02 +0200
committerMark Stapp <mjs@voltanet.io>2020-06-11 21:31:54 +0200
commit41b21bfa600731a4096d1c9372b365acaef4065f (patch)
treedf14a976094b6ad10a459ed378df882a212ec9a5 /sharpd
parentMerge pull request #6565 from donaldsharp/clear_longer (diff)
downloadfrr-41b21bfa600731a4096d1c9372b365acaef4065f.tar.xz
frr-41b21bfa600731a4096d1c9372b365acaef4065f.zip
*: have daemons call frr_fini() at termination
Fix a number of library and daemon issues so that daemons can call frr_fini() during normal termination. Without this, temporary logging files are left behind in /var/tmp/frr/. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'sharpd')
-rw-r--r--sharpd/sharp_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sharpd/sharp_main.c b/sharpd/sharp_main.c
index db6583638..40b41fd72 100644
--- a/sharpd/sharp_main.c
+++ b/sharpd/sharp_main.c
@@ -81,6 +81,8 @@ static void sigint(void)
{
zlog_notice("Terminating on signal");
+ frr_fini();
+
exit(0);
}