Lines Matching refs:pid
10 static int w(pid_t pid)13 r = waitpid(pid, &s, 0);16 else if (r != pid)17 t_error("child pid was %d, waitpid returned %d\n", pid, r);25 pid_t pid;26 if((pid = vfork()) == 0) {30 if (pid == -1) {34 int r = w(pid);41 pid_t pid;42 if((pid = vfork()) == 0) {47 if (pid == -1) {51 return w(pid);