diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-05-29 22:44:54 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-05-29 22:55:40 +0200 |
commit | f3e1d2241e0e96de95640bd8ecef5ff61843f3a5 (patch) | |
tree | 8f01dcabe39df0aa7b05a3b18542e18a64828e33 /bfdd/bfdd.c | |
parent | bgpd: fix crash on daemon exit (diff) | |
download | frr-f3e1d2241e0e96de95640bd8ecef5ff61843f3a5.tar.xz frr-f3e1d2241e0e96de95640bd8ecef5ff61843f3a5.zip |
bfdd: don't update peers settings on shutdown
During the shutdown phase don't attempt to apply settings to peers
as it is useless and will crash if the peer hash is gone.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'bfdd/bfdd.c')
-rw-r--r-- | bfdd/bfdd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfdd/bfdd.c b/bfdd/bfdd.c index 39d51eb64..9131417f1 100644 --- a/bfdd/bfdd.c +++ b/bfdd/bfdd.c @@ -63,6 +63,8 @@ static void sigusr1_handler(void) static void sigterm_handler(void) { + bglobal.bg_shutdown = true; + /* Signalize shutdown. */ frr_early_fini(); |