]> git.proxmox.com Git - proxmox-backup.git/blobdiff - src/bin/proxmox_backup_client/mount.rs
build: bump nix dependency
[proxmox-backup.git] / src / bin / proxmox_backup_client / mount.rs
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