chiark / gitweb /
otter cli: mgmtchannel-proxy: Exit 0 on command EOF too
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 1 Jun 2021 19:32:31 +0000 (20:32 +0100)
committerIan 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

index 6a46f637731f020088bafff5d08b3a927f967c14..e32818fe48d5b61505af566e9183316d7455493f 100644 (file)
@@ -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");