Lines Matching refs:pid
43 pid_t pid; in main() local
51 pid = fork(); in main()
52 assert(pid >= 0); in main()
53 if (!pid) { in main()
61 assert(wait4(pid, &s, WNOHANG | __WALL, NULL) == 0); in main()
62 assert(waitid(P_PID, pid, &info, WNOHANG | WEXITED) == 0); in main()
66 assert(wait4(pid, &s, 0, &rusage) == pid); in main()
69 pid = fork(); in main()
70 assert(pid >= 0); in main()
71 if (!pid) { in main()
75 assert(wait4(pid, &s, __WALL, NULL) == pid); in main()
78 pid = fork(); in main()
79 assert(pid >= 0); in main()
80 if (!pid) { in main()
84 assert(wait4(pid, &s, WUNTRACED, NULL) == pid); in main()
87 assert(kill(pid, SIGCONT) == 0); in main()
88 assert(waitid(P_PID, pid, &info, WEXITED | WSTOPPED) == 0); in main()