Lines Matching defs:pid
376 static int WaitProcessExit(int pid, int* code)
379 int rt = waitpid(pid, &status, 0);
387 } else if (rt != pid) { // waitpid return error
591 pid_t pid = fork();
592 ASSERT_TRUE(pid >= 0) << "======== Fork Error! =========";
593 if (pid == 0) {
618 int procStat = WaitProcessExit(pid, &exitCode);
631 pid_t pid = fork();
632 ASSERT_TRUE(pid >= 0) << "======== Fork Error! =========";
633 if (pid == 0) {
644 int procStat = WaitProcessExit(pid, &exitCode);
657 pid_t pid = fork();
658 ASSERT_TRUE(pid >= 0) << "======== Fork Error! =========";
659 if (pid == 0) {
684 int procStat = WaitProcessExit(pid, &exitCode);
697 pid_t pid = fork();
698 ASSERT_TRUE(pid >= 0) << "======== Fork Error! =========";
699 if (pid == 0) {
731 int procStat = WaitProcessExit(pid, &exitCode);