Skip to content

Commit 9192435

Browse files
committed
Add pthread_atfork function
1 parent 05a2d19 commit 9192435

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ extern {
545545
link_name = "pthread_join$UNIX2003")]
546546
pub fn pthread_join(native: ::pthread_t,
547547
value: *mut *mut ::c_void) -> ::c_int;
548+
pub fn pthread_atfork(prepare: Option<unsafe extern fn()>,
549+
parent: Option<unsafe extern fn()>,
550+
child: Option<unsafe extern fn()>) -> ::c_int;
548551
pub fn pthread_exit(value: *mut ::c_void);
549552
pub fn pthread_attr_init(attr: *mut ::pthread_attr_t) -> ::c_int;
550553
pub fn pthread_attr_destroy(attr: *mut ::pthread_attr_t) -> ::c_int;

0 commit comments

Comments
 (0)