Lines Matching defs:pid1
614 static boolean_t check_reorder_priorities(pid_t pid1, pid_t pid2, int priority) {
627 if (entries[i].pid == pid1) {
663 pid_t pid1, pid2;
667 pid1 = init_and_fork();
668 if (pid1 == 0) {
677 printTestHeader(pid1, "Reorder test");
679 /* pid2 should follow pid1 in the bucket */
680 if (!set_priority_properties(pid1, test_priority, 0, 0, REORDER_TEST_STR, true) || !set_priority_properties(pid2, test_priority, 0, 0, REORDER_TEST_STR, true)) {
686 if (!check_reorder_priorities(pid1, pid2, test_priority)) {
687 printf("Bad pid1 -> pid2 priorities - #2!\n");
692 if (!set_priority_properties(pid1, test_priority, 0, 0, REORDER_TEST_STR, true)) {
698 if (!check_reorder_priorities(pid2, pid1, test_priority)) {
699 printf("Bad pid2 -> pid1 priorities - #4!\n");
710 if (!check_reorder_priorities(pid1, pid2, test_priority)) {
711 printf("Bad pid1 -> pid2 priorities - #6!\n");
720 kill(pid1, SIGKILL);
724 waitpid(pid1, &status, 0);