Lines Matching refs:pid

168     nxt_pid_t           pid;  in nxt_process_start()  local
200 pid = nxt_process_create(task, process); in nxt_process_start()
202 switch (pid) { in nxt_process_start()
260 process->pid = nxt_pid; in nxt_process_child_fixup()
278 && p->pid != nxt_ppid) /* Always keep parent's port. */ in nxt_process_child_fixup()
280 nxt_debug(task, "remove not required process %PI", p->pid); in nxt_process_child_fixup()
288 nxt_debug(task, "remove not ready process %PI", p->pid); in nxt_process_child_fixup()
307 nxt_pid_t pid; in nxt_process_create() local
310 pid = nxt_clone(SIGCHLD | process->isolation.clone.flags); in nxt_process_create()
311 if (nxt_slow_path(pid < 0)) { in nxt_process_create()
313 return pid; in nxt_process_create()
316 pid = fork(); in nxt_process_create()
317 if (nxt_slow_path(pid < 0)) { in nxt_process_create()
319 return pid; in nxt_process_create()
323 if (pid == 0) { in nxt_process_create()
347 nxt_debug(task, "clone(%s): %PI", process->name, pid); in nxt_process_create()
349 nxt_debug(task, "fork(%s): %PI", process->name, pid); in nxt_process_create()
352 process->pid = pid; in nxt_process_create()
353 process->isolated_pid = pid; in nxt_process_create()
357 return pid; in nxt_process_create()
507 main_port->pid, process); in nxt_process_whoami()
534 nxt_pid_t pid, isolated_pid; in nxt_process_whoami_ok() local
546 nxt_memcpy(&pid, buf->mem.pos, sizeof(nxt_pid_t)); in nxt_process_whoami_ok()
550 if (isolated_pid != pid) { in nxt_process_whoami_ok()
551 nxt_pid = pid; in nxt_process_whoami_ok()
552 process->pid = pid; in nxt_process_whoami_ok()
555 port->pid = pid; in nxt_process_whoami_ok()
605 main_port->pid, process); in nxt_process_send_created()
825 nxt_pid_t pid; in nxt_process_execute() local
829 if (posix_spawn(&pid, name, NULL, NULL, argv, envp) != 0) { in nxt_process_execute()
834 return pid; in nxt_process_execute()
842 nxt_pid_t pid; in nxt_process_execute() local
851 pid = vfork(); in nxt_process_execute()
853 switch (pid) { in nxt_process_execute()
874 nxt_debug(task, "vfork(): %PI", pid); in nxt_process_execute()
878 return pid; in nxt_process_execute()
888 nxt_pid_t pid; in nxt_process_daemon() local
899 pid = fork(); in nxt_process_daemon()
901 switch (pid) { in nxt_process_daemon()
913 nxt_debug(task, "fork(): %PI", pid); in nxt_process_daemon()