Lines Matching defs:pid
590 int pid;
612 if ((pid = fork()) != 0) {
613 _exit(pid > 0 ? DLG_EXIT_OK : DLG_EXIT_ERROR);
614 } else if (pid == 0) { /* child */
615 if ((pid = fork()) != 0) {
622 if (pid > 0) { /* parent */
623 fprintf(stderr, "%d\n", pid);
628 while (-1 == waitpid(pid, &wstatus, 0)) {
640 while (wait(&wstatus) != pid) /* do nothing */
644 } else if (pid == 0) {