Lines Matching defs:child_pid
101 static volatile pid_t child_pid = -1;
536 if ((pid = waitpid(child_pid, &status, WNOHANG|WNOWAIT)) != -1) {
537 if (pid == child_pid &&
558 if (child_pid != -1) {
559 (void) sigsend(P_PGID, child_pid, s);
1478 if ((child_pid = fork()) == -1) {
1481 } else if (child_pid == 0) {
1491 retval = waitpid(child_pid, &pstatus, 0);
1492 } while (retval != child_pid);
1604 if ((child_pid = fork()) == -1) {
1609 } else if (child_pid == 0) { /* child process */
1694 retval = waitpid(child_pid, &child_status, 0);
1698 } while (retval != child_pid && errno != ECHILD);
2150 * signal before child_pid has been initialized (yes, this really
2169 if ((child_pid = fork()) == -1) {
2174 } else if (child_pid == 0) { /* child process */