build: bump nix dependency
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
c7e18ba08a
commit
0c4c6a7b1c
|
@ -29,7 +29,7 @@ hyper = "0.13.6"
|
||||||
lazy_static = "1.4"
|
lazy_static = "1.4"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
nix = "0.16"
|
nix = "0.19"
|
||||||
num-traits = "0.2"
|
num-traits = "0.2"
|
||||||
once_cell = "1.3.1"
|
once_cell = "1.3.1"
|
||||||
openssl = "0.10"
|
openssl = "0.10"
|
||||||
|
|
|
@ -144,7 +144,7 @@ fn mount(
|
||||||
// Process should be deamonized.
|
// Process should be deamonized.
|
||||||
// Make sure to fork before the async runtime is instantiated to avoid troubles.
|
// Make sure to fork before the async runtime is instantiated to avoid troubles.
|
||||||
let pipe = pipe()?;
|
let pipe = pipe()?;
|
||||||
match fork() {
|
match unsafe { fork() } {
|
||||||
Ok(ForkResult::Parent { .. }) => {
|
Ok(ForkResult::Parent { .. }) => {
|
||||||
nix::unistd::close(pipe.1).unwrap();
|
nix::unistd::close(pipe.1).unwrap();
|
||||||
// Blocks the parent process until we are ready to go in the child
|
// Blocks the parent process until we are ready to go in the child
|
||||||
|
|
|
@ -101,10 +101,10 @@ impl Reloader {
|
||||||
|
|
||||||
// Start ourselves in the background:
|
// Start ourselves in the background:
|
||||||
use nix::unistd::{fork, ForkResult};
|
use nix::unistd::{fork, ForkResult};
|
||||||
match fork() {
|
match unsafe { fork() } {
|
||||||
Ok(ForkResult::Child) => {
|
Ok(ForkResult::Child) => {
|
||||||
// Double fork so systemd can supervise us without nagging...
|
// Double fork so systemd can supervise us without nagging...
|
||||||
match fork() {
|
match unsafe { fork() } {
|
||||||
Ok(ForkResult::Child) => {
|
Ok(ForkResult::Child) => {
|
||||||
std::mem::drop(pold);
|
std::mem::drop(pold);
|
||||||
// At this point we call pre-exec helpers. We must be certain that if they fail for
|
// At this point we call pre-exec helpers. We must be certain that if they fail for
|
||||||
|
|
Loading…
Reference in New Issue