mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-05 09:27:17 +00:00
update to nix 0.16
This commit is contained in:
parent
4a08490b81
commit
a185257e80
@ -165,6 +165,7 @@ impl Reloader {
|
||||
fn do_exec(self, exe: CString, args: Vec<CString>) -> Result<(), Error> {
|
||||
self.pre_exec()?;
|
||||
nix::unistd::setsid()?;
|
||||
let args: Vec<&std::ffi::CStr> = args.iter().map(|s| s.as_ref()).collect();
|
||||
nix::unistd::execvp(&exe, &args)?;
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user