diff --git a/src/header/unistd/mod.rs b/src/header/unistd/mod.rs index 012153d454..c7e4835359 100644 --- a/src/header/unistd/mod.rs +++ b/src/header/unistd/mod.rs @@ -450,13 +450,16 @@ pub extern "C" fn pread(fildes: c_int, buf: *mut c_void, nbyte: size_t, offset: res } -// #[no_mangle] +#[no_mangle] pub extern "C" fn pthread_atfork( prepare: Option, parent: Option, child: Option, ) -> c_int { - unimplemented!(); + // TODO: WIP implementation available in "atfork" branch. It's + // segfaulting at the thread-local stuff, both in Unix and Redox. + // unimplemented!(); + 0 } #[no_mangle]