From e929538098376804370e84c0a7b8c92d9ccc2a0c Mon Sep 17 00:00:00 2001 From: jD91mZM2 <me@krake.one> Date: Sun, 16 Jun 2019 14:34:14 +0200 Subject: [PATCH] Uncomment pthread_atfork stub to get ion to build --- src/header/unistd/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/header/unistd/mod.rs b/src/header/unistd/mod.rs index 012153d45..c7e483535 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<extern "C" fn()>, parent: Option<extern "C" fn()>, child: Option<extern "C" fn()>, ) -> 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] -- GitLab