Lines Matching defs:pid
96 int child = 0; /* pid of the executed process */
230 int pid = fork();
232 if (pid < 0) { /* fork error */
237 if (pid) { /* parent terminates */
422 int fd, pid, count;
424 for (count = 0; (pid = fork()) < 0; count++) {
433 if (pid != 0) {
677 pid_t pid;
683 while ((pid = waitpid((pid_t)-1, &status, WNOHANG|WUNTRACED)) > 0) {
686 if (pid == child) {
688 printf("pid==child\n");