Lines Matching defs:process

105   uv_process_t* process;
120 process = uv__queue_data(q, uv_process_t, queue);
124 if ((process->flags & UV_HANDLE_REAP) == 0)
127 process->flags &= ~UV_HANDLE_REAP;
134 pid = waitpid(process->pid, &status, options);
150 assert(pid == process->pid);
151 process->status = status;
152 uv__queue_remove(&process->queue);
153 uv__queue_insert_tail(&pending, &process->queue);
159 process = uv__queue_data(q, uv_process_t, queue);
162 uv__queue_remove(&process->queue);
163 uv__queue_init(&process->queue);
164 uv__handle_stop(process);
166 if (process->exit_cb == NULL)
170 if (WIFEXITED(process->status))
171 exit_status = WEXITSTATUS(process->status);
174 if (WIFSIGNALED(process->status))
175 term_signal = WTERMSIG(process->status);
177 process->exit_cb(process, exit_status, term_signal);
266 /* The write might have failed (e.g. if the parent process has died),
491 * 4) POSIX_SPAWN_SETSID: Make the process a new session leader if a detached
688 /* The environment for the child process is that of the parent unless overridden
709 * https://git.musl-libc.org/cgit/musl/tree/src/process/execvp.c
724 /* Compose the new process file from the entry in the PATH
740 /* Try to spawn the new process file. If it fails with ENOENT, the
741 * new process file is not in this PATH entry, continue with the next
834 /* Fork succeeded, in the child process */
846 /* Fork succeeded, in the parent process */
865 /* Special child process spawn case for macOS Big Sur (11.0) onwards
868 * fork/exec when the process has many pages mmaped in with MAP_JIT, like, say
877 * leak descriptors to the child process. */
905 * there is no telling what process receives the signal,
921 /* Release lock in parent process */
957 uv_process_t* process,
981 uv__handle_init(loop, (uv_handle_t*)process, UV_PROCESS);
982 uv__queue_init(&process->queue);
983 process->status = 0;
1034 process->flags |= UV_HANDLE_REAP;
1043 process->pid = pid;
1044 process->exit_cb = options->exit_cb;
1045 uv__queue_insert_tail(&loop->process_handles, &process->queue);
1046 uv__handle_start(process);
1086 int uv_process_kill(uv_process_t* process, int signum) {
1087 return uv_kill(process->pid, signum);
1094 /* EPERM is returned if the process is a zombie. */