5 #include "pthread_impl.h"
7 static void dummy(int x)
11 weak_alias(dummy, __fork_handler);
18 __block_all_sigs(&set);
19 ret = syscall(SYS_fork);
20 if (libc.has_thread_pointer && !ret) {
21 pthread_t self = __pthread_self();
22 self->tid = self->pid = __syscall(SYS_getpid);
23 memset(&self->robust_list, 0, sizeof self->robust_list);
24 libc.threads_minus_1 = 0;