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 /pbrd/pbr_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 'pbrd/pbr_main.c')
| -rw-r--r-- | pbrd/pbr_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pbrd/pbr_main.c b/pbrd/pbr_main.c index 57338738f6..9a9edd79c6 100644 --- a/pbrd/pbr_main.c +++ b/pbrd/pbr_main.c @@ -82,6 +82,8 @@ static void sigint(void) { zlog_notice("Terminating on signal"); + frr_fini(); + exit(0); } |
