Browse Source

Merge pull request #17 from ian-h-chamberlain/fix/pthread_atfork

Add no-op pthread_atfork
pull/18/head
Mark Drobnak 3 years ago committed by GitHub
parent
commit
f999cab0c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      src/misc.rs

9
src/misc.rs

@ -17,3 +17,12 @@ pub unsafe extern "C" fn pthread_sigmask(
) -> ::libc::c_int { ) -> ::libc::c_int {
-1 -1
} }
#[no_mangle]
pub extern "C" fn pthread_atfork(
_prepare: Option<unsafe extern "C" fn()>,
_parent: Option<unsafe extern "C" fn()>,
_child: Option<unsafe extern "C" fn()>,
) -> libc::c_int {
0
}

Loading…
Cancel
Save