From 63468fc4141e662ea91eb55e251ba9134d52b22b Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Tue, 19 Jul 2022 10:39:44 +0200 Subject: [PATCH] Replace syscall::clone() with libc::fork() --- Cargo.toml | 1 + src/bin/mount.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e12c4a6061..c8f4390422 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,6 +36,7 @@ argon2 = { version = "0.3.4", default-features = false, features = ["alloc"] } base64ct = { version = "1", default-features = false } env_logger = { version = "0.9.0", optional = true } getrandom = { version = "0.2.5", optional = true } +libc = "0.2" log = { version = "0.4.14", default-features = false } redox_syscall = "0.2.12" seahash = { version = "4.1.0", default-features = false } diff --git a/src/bin/mount.rs b/src/bin/mount.rs index cd9d1037e9..ef09553d25 100644 --- a/src/bin/mount.rs +++ b/src/bin/mount.rs @@ -65,7 +65,7 @@ fn bootloader_password() -> Option> { #[cfg(target_os = "redox")] fn fork() -> isize { - unsafe { syscall::Error::mux(syscall::clone(syscall::CloneFlags::empty())) as isize } + unsafe { libc::fork() as isize } } #[cfg(target_os = "redox")]