update to nix 0.16
This commit is contained in:
parent
769f8c9998
commit
8bf4559b4e
|
@ -23,7 +23,7 @@ lazy_static = "1.3"
|
|||
libc = "0.2"
|
||||
log = "0.4"
|
||||
native-tls = "0.2"
|
||||
nix = "0.15"
|
||||
nix = "0.16"
|
||||
openssl = "0.10"
|
||||
pam = "0.7"
|
||||
pam-sys = "0.5"
|
||||
|
|
|
@ -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