Lines Matching defs:process
85 uv_process_t* process;
100 process = QUEUE_DATA(q, uv_process_t, queue);
104 if ((process->flags & UV_HANDLE_REAP) == 0)
107 process->flags &= ~UV_HANDLE_REAP;
113 pid = waitpid(process->pid, &status, options);
129 assert(pid == process->pid);
130 process->status = status;
131 QUEUE_REMOVE(&process->queue);
132 QUEUE_INSERT_TAIL(&pending, &process->queue);
138 process = QUEUE_DATA(q, uv_process_t, queue);
141 QUEUE_REMOVE(&process->queue);
142 QUEUE_INIT(&process->queue);
143 uv__handle_stop(process);
145 if (process->exit_cb == NULL)
149 if (WIFEXITED(process->status))
150 exit_status = WEXITSTATUS(process->status);
153 if (WIFSIGNALED(process->status))
154 term_signal = WTERMSIG(process->status);
156 process->exit_cb(process, exit_status, term_signal);
240 /* The write might have failed (e.g. if the parent process has died),
471 * 4) POSIX_SPAWN_SETSID: Make the process a new session leader if a detached
668 /* The environment for the child process is that of the parent unless overriden
689 * https://git.musl-libc.org/cgit/musl/tree/src/process/execvp.c
704 /* Compose the new process file from the entry in the PATH
720 /* Try to spawn the new process file. If it fails with ENOENT, the
721 * new process file is not in this PATH entry, continue with the next
814 /* Fork succeeded, in the child process */
826 /* Fork succeeded, in the parent process */
845 /* Special child process spawn case for macOS Big Sur (11.0) onwards
848 * fork/exec when the process has many pages mmaped in with MAP_JIT, like, say
857 * leak descriptors to the child process. */
885 * there is no telling what process receives the signal,
901 /* Release lock in parent process */
936 uv_process_t* process,
959 uv__handle_init(loop, (uv_handle_t*)process, UV_PROCESS);
960 QUEUE_INIT(&process->queue);
961 process->status = 0;
1012 process->flags |= UV_HANDLE_REAP;
1017 process->pid = pid;
1018 process->exit_cb = options->exit_cb;
1019 QUEUE_INSERT_TAIL(&loop->process_handles, &process->queue);
1020 uv__handle_start(process);
1060 int uv_process_kill(uv_process_t* process, int signum) {
1061 return uv_kill(process->pid, signum);
1068 /* EPERM is returned if the process is a zombie. */