4 #include "pthread_impl.h"
9 if (libc.fork_handler) libc.fork_handler(-1);
10 ret = syscall(SYS_fork);
11 if (libc.lock && !ret) {
12 pthread_t self = __pthread_self();
13 self->tid = self->pid = syscall(SYS_getpid);
14 libc.threads_minus_1 = 0;
16 if (libc.fork_handler) libc.fork_handler(!ret);