6 #include "pthread_impl.h"
8 static void dummy(int x)
12 weak_alias(dummy, __fork_handler);
19 __block_all_sigs(&set);
21 ret = syscall(SYS_fork);
23 ret = syscall(SYS_clone, SIGCHLD, 0);
25 if (libc.has_thread_pointer && !ret) {
26 pthread_t self = __pthread_self();
27 self->tid = __syscall(SYS_gettid);
28 memset(&self->robust_list, 0, sizeof self->robust_list);
29 libc.threads_minus_1 = 0;