Implement _Fork, which is fork without pthread_atfork hooks

This commit is contained in:
Jeremy Soller
2025-12-19 08:49:53 -07:00
parent 6ef2884f03
commit 4daa52a6bd
+2 -2
View File
@@ -117,9 +117,9 @@ unsafe extern "C" {
}
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fork.html>.
// #[unsafe(no_mangle)]
#[unsafe(no_mangle)]
pub unsafe extern "C" fn _Fork() -> pid_t {
unimplemented!();
Sys::fork().or_minus_one_errno()
}
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/_Exit.html>.