Ensure validator process is killed when fullnode.sh is killed (#4869) (#4871)

automerge
This commit is contained in:
mergify[bot]
2019-06-28 15:03:46 -07:00
committed by Grimes
parent 2d68170747
commit ad9fa54a47
2 changed files with 21 additions and 6 deletions

View File

@@ -793,7 +793,8 @@ pub fn run(
Ok(true) => {
// Update successful, kill current process so it will be restart
if let Some(ref mut child) = child_option {
println!("Killing program: {:?}", child.kill());
let id = child.id();
println!("Killing pid {}: {:?}", id, child.kill());
}
}
Ok(false) => {} // No update available