4 #include "pthread_impl.h"
6 static void dummy(int x)
10 weak_alias(dummy, __fork_handler);
16 ret = syscall(SYS_fork);
17 if (libc.main_thread && !ret) {
18 pthread_t self = __pthread_self();
19 self->tid = self->pid = syscall(SYS_getpid);
20 memset(&self->robust_list, 0, sizeof self->robust_list);
21 libc.threads_minus_1 = 0;
22 libc.main_thread = self;