Lines Matching refs:pid
582 pid_t pid;
585 pid = fork();
586 ATF_REQUIRE(pid != -1);
587 if (pid == 0) {
592 ATF_REQUIRE(waitpid(pid, &status, 0) != 0);
701 const pid_t pid = getpid();
702 if (write(STDOUT_FILENO, &pid, sizeof(pid)) != sizeof(pid))
711 atf_tc_set_md_var(tc, "descr", "Tests the correctness of the pid "
719 pid_t pid;
725 ATF_CHECK_EQ(read(atf_process_child_stdout(&child), &pid, sizeof(pid)),
726 sizeof(pid));
728 printf("Actual PID: %d\n", (int)pid);
729 ATF_CHECK_EQ(atf_process_child_pid(&child), pid);