Replace syscall::clone() with libc::fork()

This commit is contained in:
4lDO2
2022-07-19 10:39:44 +02:00
parent 0ea2fd49dd
commit 63468fc414
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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 }
+1 -1
View File
@@ -65,7 +65,7 @@ fn bootloader_password() -> Option<Vec<u8>> {
#[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")]