mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-06 10:06:25 +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> {
|
fn do_exec(self, exe: CString, args: Vec<CString>) -> Result<(), Error> {
|
||||||
self.pre_exec()?;
|
self.pre_exec()?;
|
||||||
nix::unistd::setsid()?;
|
nix::unistd::setsid()?;
|
||||||
|
let args: Vec<&std::ffi::CStr> = args.iter().map(|s| s.as_ref()).collect();
|
||||||
nix::unistd::execvp(&exe, &args)?;
|
nix::unistd::execvp(&exe, &args)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user