From 1d267eae6b82222027780280f8141710260c6123 Mon Sep 17 00:00:00 2001 From: behzad nouri Date: Wed, 9 Dec 2020 11:49:45 -0500 Subject: [PATCH] std::process::exit to kill all threads --- core/src/cluster_info.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/cluster_info.rs b/core/src/cluster_info.rs index 599019b05a..ee6dfb245d 100644 --- a/core/src/cluster_info.rs +++ b/core/src/cluster_info.rs @@ -2917,7 +2917,9 @@ impl ClusterInfo { self.id() ); exit.store(true, Ordering::Relaxed); - return; + // TODO: Pass through ValidatorExit here so + // that this will exit cleanly. + std::process::exit(1); } _ => error!("gossip run_listen failed: {}", err), }