Replace syscall::clone() with libc::fork()
This commit is contained in:
@@ -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
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user