Skip to content

Commit f40dd09

Browse files
committed
Impl native_mux_impl::Session::subsystem
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent 403963e commit f40dd09

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/native_mux_impl/session.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ impl Session {
3838
}
3939

4040
pub(crate) fn raw_command<S: AsRef<OsStr>>(&self, program: S) -> Command {
41-
Command::new(self.ctl.clone(), program.as_ref().as_bytes().into())
41+
Command::new(self.ctl.clone(), program.as_ref().as_bytes().into(), false)
42+
}
43+
44+
pub(crate) fn subsystem<S: AsRef<OsStr>>(&self, program: S) -> Command {
45+
Command::new(self.ctl.clone(), program.as_ref().as_bytes().into(), true)
4246
}
4347

4448
pub(crate) async fn request_port_forward(

0 commit comments

Comments
 (0)