diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-06-11 11:16:02 -0400 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-06-11 15:31:54 -0400 | 
| commit | 41b21bfa600731a4096d1c9372b365acaef4065f (patch) | |
| tree | df14a976094b6ad10a459ed378df882a212ec9a5 /sharpd/sharp_main.c | |
| parent | dbb482bf33123dbcaeecb5f1477681f7dbaf8dc2 (diff) | |
*: 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/sharp_main.c')
| -rw-r--r-- | sharpd/sharp_main.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/sharpd/sharp_main.c b/sharpd/sharp_main.c index db65836388..40b41fd728 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);  }  | 
