Lines Matching refs:pid
64 pid_t pid; /* if nonzero, the child's pid */
74 pid_t pid = (pid_t)(uintptr_t)arg;
78 while (waitpid(pid, NULL, 0) == -1) {
98 if (cup->pid != 0) { /* we were cancelled; abandoning our pid */
101 reapchild, (void *)(uintptr_t)cup->pid,
157 * Only a specific wait for the specific pid will be able
158 * to reap the child. Since no other thread knows the pid
239 error = posix_spawn(&cu.pid, shpath, NULL, &attr,
253 w = waitpid(cu.pid, &status, 0);
260 cu.pid = 0;