Explorar el Código

Uncomment pthread_atfork stub to get ion to build

jD91mZM2 hace 5 años
padre
commit
e929538098
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      src/header/unistd/mod.rs

+ 5 - 2
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]