From 0df65e7ab21c060d0a1fe4151b67d68760edb29b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 1 Jun 2021 20:32:31 +0100 Subject: [PATCH] otter cli: mgmtchannel-proxy: Exit 0 on command EOF too Signed-off-by: Ian Jackson --- src/bin/otter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 6a46f637..e32818fe 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -1955,6 +1955,7 @@ mod mgmtchannel_proxy { Right(we) => AE::from(we).context("forward cmds to servvr"), }) .unwrap_or_else(|e| e.end_process(8)); + exit(0); }); let tresps = thread::spawn(move || { io_copy_interactive(&mut read, &mut RawStdout::new()) @@ -1964,7 +1965,6 @@ mod mgmtchannel_proxy { }) .context("copy responses") .unwrap_or_else(|e| e.end_process(8)); - exit(0); }); tcmds.join().expect("collect commands copy"); -- 2.30.2