Lines Matching defs:child_pid
97 static volatile pid_t child_pid = -1;
530 if ((pid = waitpid(child_pid, &status, WNOHANG|WNOWAIT)) != -1) {
531 if (pid == child_pid &&
552 if (child_pid != -1) {
553 pid_t pgid = getpgid(child_pid);
1474 if ((child_pid = fork()) == -1) {
1477 } else if (child_pid == 0) {
1487 retval = waitpid(child_pid, &pstatus, 0);
1488 } while (retval != child_pid);
1600 if ((child_pid = fork()) == -1) {
1605 } else if (child_pid == 0) { /* child process */
1690 retval = waitpid(child_pid, &child_status, 0);
1694 } while (retval != child_pid && errno != ECHILD);
2089 * signal before child_pid has been initialized (yes, this really
2108 if ((child_pid = fork()) == -1) {
2113 } else if (child_pid == 0) { /* child process */