Lines Matching refs:pid
583 pid_t pid;
586 pid = fork();
587 ATF_REQUIRE(pid != -1);
588 if (pid == 0) {
593 ATF_REQUIRE(waitpid(pid, &status, 0) != 0);
694 const pid_t pid = getpid();
695 if (write(STDOUT_FILENO, &pid, sizeof(pid)) != sizeof(pid))
704 atf_tc_set_md_var(tc, "descr", "Tests the correctness of the pid "
712 pid_t pid;
718 ATF_CHECK_EQ(read(atf_process_child_stdout(&child), &pid, sizeof(pid)),
719 sizeof(pid));
721 printf("Actual PID: %d\n", (int)pid);
722 ATF_CHECK_EQ(atf_process_child_pid(&child), pid);