Lines Matching refs:pid

55 static nxt_process_t *nxt_proto_process_find(nxt_task_t *task, nxt_pid_t pid);
57 static nxt_process_t *nxt_proto_process_remove(nxt_task_t *task, nxt_pid_t pid);
180 main_port->pid, NULL); in nxt_discovery_start()
652 port = nxt_runtime_port_find(rt, msg->port_msg.pid, in nxt_proto_start_process_handler()
696 nxt_pid_t isolated_pid, pid; in nxt_proto_process_created_handler() local
708 pid = msg->port_msg.pid; in nxt_proto_process_created_handler()
710 if (process->pid != pid) { in nxt_proto_process_created_handler()
712 pid); in nxt_proto_process_created_handler()
716 process->pid = pid; in nxt_proto_process_created_handler()
755 nxt_pid_t pid; in nxt_proto_sigchld_handler() local
762 pid = waitpid(-1, &status, WNOHANG); in nxt_proto_sigchld_handler()
764 if (pid == -1) { in nxt_proto_sigchld_handler()
780 nxt_debug(task, "waitpid(): %PI", pid); in nxt_proto_sigchld_handler()
782 if (pid == 0) { in nxt_proto_sigchld_handler()
789 pid, WTERMSIG(status), in nxt_proto_sigchld_handler()
793 pid, WTERMSIG(status)); in nxt_proto_sigchld_handler()
798 pid, WEXITSTATUS(status)); in nxt_proto_sigchld_handler()
801 process = nxt_proto_process_remove(task, pid); in nxt_proto_sigchld_handler()
1038 init->ready_port.id.pid = proto_port->pid; in nxt_unit_default_init()
1045 init->router_port.id.pid = router_port->pid; in nxt_unit_default_init()
1050 init->read_port.id.pid = my_port->pid; in nxt_unit_default_init()
1093 nxt_proto_process_lhq_pid(nxt_lvlhsh_query_t *lhq, nxt_pid_t *pid) in nxt_proto_process_lhq_pid() argument
1095 lhq->key_hash = nxt_murmur_hash2(pid, sizeof(nxt_pid_t)); in nxt_proto_process_lhq_pid()
1097 lhq->key.start = (u_char *) pid; in nxt_proto_process_lhq_pid()
1133 nxt_proto_process_remove(nxt_task_t *task, nxt_pid_t pid) in nxt_proto_process_remove() argument
1139 nxt_proto_process_lhq_pid(&lhq, &pid); in nxt_proto_process_remove()
1148 nxt_debug(task, "process (isolated %PI) removed", pid); in nxt_proto_process_remove()
1158 nxt_debug(task, "process (isolated %PI) remove failed", pid); in nxt_proto_process_remove()
1168 nxt_proto_process_find(nxt_task_t *task, nxt_pid_t pid) in nxt_proto_process_find() argument
1173 nxt_proto_process_lhq_pid(&lhq, &pid); in nxt_proto_process_find()
1179 nxt_debug(task, "process (isolated %PI) not found", pid); in nxt_proto_process_find()