Lines Matching refs:pid
110 pid_t pid;
134 pid = waitpid(process->pid, &status, options);
135 while (pid == -1 && errno == EINTR);
138 if (pid == 0) /* Not yet exited */
142 if (pid == -1) {
150 assert(pid == process->pid);
671 pid_t* pid) {
700 err = posix_spawn(pid, options->file, actions, attrs, options->args, env);
744 err = posix_spawn(pid, b, actions, attrs, options->args, env);
772 pid_t* pid,
795 err = uv__spawn_resolve_and_spawn(options, &attrs, &actions, pid);
813 pid_t* pid) {
831 *pid = fork();
833 if (*pid == 0) {
842 if (*pid == -1)
855 pid_t* pid) {
881 pid,
896 * if ((pid = fork()) > 0) {
897 * kill(pid, SIGTERM);
899 * else if (pid == 0) {
919 err = uv__spawn_and_init_child_fork(options, stdio_count, pipes, signal_pipe[1], pid);
935 err = waitpid(*pid, &status, 0); /* okay, read errorno */
937 assert(err == *pid);
942 err = waitpid(*pid, &status, 0); /* okay, got EPIPE */
944 assert(err == *pid);
966 pid_t pid;
1013 exec_errorno = uv__spawn_and_init_child(loop, options, stdio_count, pipes, &pid);
1029 EV_SET(&event, pid, EVFILT_PROC, EV_ADD | EV_ONESHOT, NOTE_EXIT, 0, 0);
1043 process->pid = pid;
1087 return uv_kill(process->pid, signum);
1091 int uv_kill(int pid, int signum) {
1092 if (kill(pid, signum)) {
1097 waitid(P_PID, pid, &infop, WNOHANG | WNOWAIT | WEXITED) == 0)