[pbs-devel] [PATCH proxmox-backup] client: mount: flush output before exiting
Gabriel Goller
g.goller at proxmox.com
Fri Jun 14 11:40:08 CEST 2024
On 14.06.2024 11:36, Christian Ebner wrote:
>> diff --git a/proxmox-backup-client/src/mount.rs b/proxmox-backup-client/src/mount.rs
>> index b69e7e80..001cbd62 100644
>> --- a/proxmox-backup-client/src/mount.rs
>> +++ b/proxmox-backup-client/src/mount.rs
>> @@ -1,6 +1,7 @@
>> use std::collections::HashMap;
>> use std::ffi::OsStr;
>> use std::hash::BuildHasher;
>> +use std::io::{self, Write};
>> use std::os::unix::io::{AsRawFd, OwnedFd};
>> use std::path::{Path, PathBuf};
>> use std::sync::Arc;
>> @@ -189,7 +190,11 @@ fn mount(
>> Ok(ForkResult::Child) => {
>> drop(pr);
>> nix::unistd::setsid().unwrap();
>> - proxmox_async::runtime::main(mount_do(param, Some(pw)))
>> + let result =
>> + proxmox_async::runtime::main(mount_do(param, Some(pw.try_clone().unwrap())));
>
>Why do you clone here?
Oops, my bad. Forgot to remove this.
More information about the pbs-devel
mailing list