Lines Matching refs:pid
107 pid_t pid; in uv__wait_children() local
131 pid = waitpid(process->pid, &status, options); in uv__wait_children()
132 while (pid == -1 && errno == EINTR); in uv__wait_children()
135 if (pid == 0) /* Not yet exited */ in uv__wait_children()
139 if (pid == -1) { in uv__wait_children()
147 assert(pid == process->pid); in uv__wait_children()
668 pid_t* pid) { in uv__spawn_resolve_and_spawn() argument
697 err = posix_spawn(pid, options->file, actions, attrs, options->args, env); in uv__spawn_resolve_and_spawn()
741 err = posix_spawn(pid, b, actions, attrs, options->args, env); in uv__spawn_resolve_and_spawn()
769 pid_t* pid, in uv__spawn_and_init_child_posix_spawn() argument
792 err = uv__spawn_resolve_and_spawn(options, &attrs, &actions, pid); in uv__spawn_and_init_child_posix_spawn()
810 pid_t* pid) { in uv__spawn_and_init_child_fork() argument
828 *pid = fork(); in uv__spawn_and_init_child_fork()
830 if (*pid == 0) { in uv__spawn_and_init_child_fork()
839 if (*pid == -1) in uv__spawn_and_init_child_fork()
852 pid_t* pid) { in uv__spawn_and_init_child() argument
878 pid, in uv__spawn_and_init_child()
916 err = uv__spawn_and_init_child_fork(options, stdio_count, pipes, signal_pipe[1], pid); in uv__spawn_and_init_child()
932 err = waitpid(*pid, &status, 0); /* okay, read errorno */ in uv__spawn_and_init_child()
934 assert(err == *pid); in uv__spawn_and_init_child()
939 err = waitpid(*pid, &status, 0); /* okay, got EPIPE */ in uv__spawn_and_init_child()
941 assert(err == *pid); in uv__spawn_and_init_child()
963 pid_t pid; in uv_spawn()
1010 exec_errorno = uv__spawn_and_init_child(loop, options, stdio_count, pipes, &pid); in uv_spawn()
1026 EV_SET(&event, pid, EVFILT_PROC, EV_ADD | EV_ONESHOT, NOTE_EXIT, 0, 0); in uv_spawn()
1040 process->pid = pid; in uv_spawn()
1084 return uv_kill(process->pid, signum); in uv_process_kill()
1088 int uv_kill(int pid, int signum) { in uv_kill() argument
1089 if (kill(pid, signum)) { in uv_kill()
1094 waitid(P_PID, pid, &infop, WNOHANG | WNOWAIT | WEXITED) == 0) in uv_kill()