Lines Matching refs:pid
599 int pid;
621 if ((pid = fork()) != 0) {
622 _exit(pid > 0 ? DLG_EXIT_OK : DLG_EXIT_ERROR);
623 } else if (pid == 0) { /* child */
624 if ((pid = fork()) != 0) {
631 if (pid > 0) { /* parent */
632 fprintf(stderr, "%d\n", pid);
637 while (-1 == waitpid(pid, &wstatus, 0)) {
649 while (wait(&wstatus) != pid) /* do nothing */
653 } else if (pid == 0) {