From: Ian Jackson Date: Tue, 1 Jun 2021 19:32:31 +0000 (+0100) Subject: otter cli: mgmtchannel-proxy: Exit 0 on command EOF too X-Git-Tag: otter-0.7.0~133 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0df65e7ab21c060d0a1fe4151b67d68760edb29b;p=otter.git otter cli: mgmtchannel-proxy: Exit 0 on command EOF too Signed-off-by: Ian Jackson --- 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");