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