diff --git a/src/tools/daemon.rs b/src/tools/daemon.rs index 397ab991..f4f63e7f 100644 --- a/src/tools/daemon.rs +++ b/src/tools/daemon.rs @@ -101,10 +101,10 @@ impl Reloader { // Start ourselves in the background: use nix::unistd::{fork, ForkResult}; - match fork() { + match unsafe { fork() } { Ok(ForkResult::Child) => { // Double fork so systemd can supervise us without nagging... - match fork() { + match unsafe { fork() } { Ok(ForkResult::Child) => { std::mem::drop(pold); // At this point we call pre-exec helpers. We must be certain that if they fail for