Lines Matching refs:pid
45 int pid; member
51 int pid; member
98 int pid; in Popen() local
116 if ((pid = start_command(cmd, &nset, fd0, fd1, NULL, NULL, NULL)) < 0) { in Popen()
123 register_file(fp, 1, pid); in Popen()
157 register_file(FILE *fp, int pipe, int pid) in register_file() argument
165 fpp->pid = pid; in register_file()
192 return (p->pid); in file_pid()
209 int pid; in run_command() local
211 if ((pid = start_command(cmd, mask, infd, outfd, a0, a1, a2)) < 0) in run_command()
213 return (wait_command(pid)); in run_command()
221 int pid; in start_command() local
223 if ((pid = fork()) < 0) { in start_command()
227 if (pid == 0) { in start_command()
240 return (pid); in start_command()
267 wait_command(int pid) in wait_command() argument
269 if (wait_child(pid) < 0) { in wait_command()
277 findchild(int pid) in findchild() argument
281 for (cpp = &child; *cpp != NULL && (*cpp)->pid != pid; in findchild()
288 (*cpp)->pid = pid; in findchild()
310 int pid; in sigchild() local
314 while ((pid = waitpid((pid_t)-1, &status, WNOHANG)) > 0) { in sigchild()
315 cp = findchild(pid); in sigchild()
331 wait_child(int pid) in wait_child() argument
334 struct child *cp = findchild(pid); in wait_child()
352 free_child(int pid) in free_child() argument
355 struct child *cp = findchild(pid); in free_child()