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