chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3127c3b
)
otter cli: mgmtchannel-proxy: Exit 0 on command EOF too
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 1 Jun 2021 19:32:31 +0000
(20:32 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 1 Jun 2021 19:43:42 +0000
(20:43 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bin/otter.rs
patch
|
blob
|
history
diff --git
a/src/bin/otter.rs
b/src/bin/otter.rs
index 6a46f637731f020088bafff5d08b3a927f967c14..e32818fe48d5b61505af566e9183316d7455493f 100644
(file)
--- 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");