This commit is contained in:
nora 2024-08-30 22:50:30 +02:00
parent 2ad87d3a14
commit e36f416c54
2 changed files with 8 additions and 6 deletions

View file

@ -2,6 +2,8 @@ log_level = "info"
[subsystem.sftp] [subsystem.sftp]
# can also:
# path = "/nix/store/03fwrvyf4gw1gps9nmyvrxl17i7287ln-openssh-9.7p1/libexec/sftp-server"
path = "../../target/debug/cluelesshd-sftp-server" path = "../../target/debug/cluelesshd-sftp-server"
[net] [net]

View file

@ -356,12 +356,12 @@ impl Server {
Some(child) => { Some(child) => {
let result = child.wait().await; let result = child.wait().await;
self.respond::<WaitResponse>( let result = result
result .map(|status| status.code())
.map(|status| status.code()) .map_err(|err| err.to_string());
.map_err(|err| err.to_string()), debug!(?result, "Child process exited");
)
.await?; self.respond::<WaitResponse>(result).await?;
// implicitly drop stdio // implicitly drop stdio
self.shell_process = None; self.shell_process = None;