update to nix 0.16

This commit is contained in:
Dietmar Maurer 2019-12-19 09:29:44 +01:00
parent 4a08490b81
commit a185257e80

View File

@ -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(())
}