std::process::exit to kill all threads

This commit is contained in:
behzad nouri
2020-12-09 11:49:45 -05:00
committed by Michael Vines
parent 895d7d6a65
commit 1d267eae6b

View File

@ -2917,7 +2917,9 @@ impl ClusterInfo {
self.id() self.id()
); );
exit.store(true, Ordering::Relaxed); 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), _ => error!("gossip run_listen failed: {}", err),
} }