From 8b38f9c7acc1e75edd47972e1f4a7eff3357edff Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Wed, 4 May 2022 19:26:35 -0400 Subject: [PATCH] Add pthread_atfork --- src/misc.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/misc.rs b/src/misc.rs index 4aa5182..100daae 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -17,3 +17,12 @@ pub unsafe extern "C" fn pthread_sigmask( ) -> ::libc::c_int { -1 } + +#[no_mangle] +pub extern "C" fn pthread_atfork( + _prepare: Option, + _parent: Option, + _child: Option, +) -> libc::c_int { + 0 +}