Skip to content

Commit 19fb98d

Browse files
committed
Auto merge of rust-lang#577 - malbarbo:pthread_atfork, r=alexcrichton
Add pthread_atfork function
2 parents 397f851 + 9192435 commit 19fb98d

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
@@ -576,6 +576,9 @@ extern {
576576
link_name = "pthread_join$UNIX2003")]
577577
pub fn pthread_join(native: ::pthread_t,
578578
value: *mut *mut ::c_void) -> ::c_int;
579+
pub fn pthread_atfork(prepare: Option<unsafe extern fn()>,
580+
parent: Option<unsafe extern fn()>,
581+
child: Option<unsafe extern fn()>) -> ::c_int;
579582
pub fn pthread_exit(value: *mut ::c_void);
580583
pub fn pthread_attr_init(attr: *mut ::pthread_attr_t) -> ::c_int;
581584
pub fn pthread_attr_destroy(attr: *mut ::pthread_attr_t) -> ::c_int;

0 commit comments

Comments
 (0)