]> git.proxmox.com Git - proxmox-backup.git/commitdiff
build: bump nix dependency
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 19 Oct 2020 10:12:33 +0000 (12:12 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 19 Oct 2020 10:12:33 +0000 (12:12 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Cargo.toml
src/bin/proxmox_backup_client/mount.rs
src/tools/daemon.rs

index 0afc6ca34e7aa9a466ad70c8a7fe067117613062..f40f489387bf5a7945bd87978d5d06641870e9a5 100644 (file)
@@ -29,7 +29,7 @@ hyper = "0.13.6"
 lazy_static = "1.4"
 libc = "0.2"
 log = "0.4"
-nix = "0.16"
+nix = "0.19"
 num-traits = "0.2"
 once_cell = "1.3.1"
 openssl = "0.10"
index 8d4c7133e4236a86875a17c89ddf36680dcb0bf1..69ab6d3fdc3c0b21305ddb0a905cf0cec26dce97 100644 (file)
@@ -144,7 +144,7 @@ fn mount(
     // Process should be deamonized.
     // Make sure to fork before the async runtime is instantiated to avoid troubles.
     let pipe = pipe()?;
-    match fork() {
+    match unsafe { fork() } {
         Ok(ForkResult::Parent { .. }) => {
             nix::unistd::close(pipe.1).unwrap();
             // Blocks the parent process until we are ready to go in the child
index 397ab99100bab4ac0edec8c0870a4ba2ea107f48..f4f63e7fde98095ce60b42aed436321551be0047 100644 (file)
@@ -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