diff options
| author | Mark Stapp <mjs@voltanet.io> | 2019-09-27 12:15:34 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2019-09-27 12:15:34 -0400 |
| commit | 2fc69f03d2f49fcf34948e82e865cd302ae08da0 (patch) | |
| tree | 8a7d4cd5dc7c4aee567e627593d10fe0fe3f2b39 /zebra/main.c | |
| parent | 5300176ff82a6ba88e84bbf0eac25a883505b585 (diff) | |
zebra: during shutdown processing, drop dplane results
Don't process dataplane results in zebra during shutdown (after
sigint has been seen). The dplane continues to run in order to
clean up, but zebra main just drops results.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/main.c')
| -rw-r--r-- | zebra/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/main.c b/zebra/main.c index 99607c0d78..f0225ac5e6 100644 --- a/zebra/main.c +++ b/zebra/main.c @@ -142,6 +142,9 @@ static void sigint(void) zlog_notice("Terminating on signal"); + atomic_store_explicit(&zrouter.in_shutdown, true, + memory_order_relaxed); + frr_early_fini(); zebra_dplane_pre_finish(); |
