Lines Matching refs:pid
492 int pid; in pthread_handle_create() local
589 pid = 0; /* Note that the thread never can have PID zero. */ in pthread_handle_create()
617 pid = __clone2(pthread_start_thread_event, new_thread_top, in pthread_handle_create()
622 pid = clone(pthread_start_thread_event, new_thread_top, in pthread_handle_create()
628 if (pid != -1) in pthread_handle_create()
641 new_thread->p_pid = pid; in pthread_handle_create()
651 if (pid == 0) in pthread_handle_create()
655 pid = __clone2(pthread_start_thread, new_thread_top, in pthread_handle_create()
660 pid = clone(pthread_start_thread, new_thread_top, in pthread_handle_create()
667 if (pid == -1) { in pthread_handle_create()
693 PDEBUG("new thread pid = %d\n", pid); in pthread_handle_create()
715 new_thread->p_pid = pid; in pthread_handle_create()
782 static void pthread_exited(pid_t pid) in pthread_exited() argument
790 if (th->p_pid == pid) { in pthread_exited()
834 pid_t pid; in pthread_reap_children() local
838 while ((pid = waitpid(-1, &status, WNOHANG | __WCLONE)) > 0) { in pthread_reap_children()
839 pthread_exited(pid); in pthread_reap_children()