Lines Matching refs:parent
64 /* WILLBLOCK - blocks, then succeeds (parent must unlock records) */
535 static int parent, child, status, fail = 0;
568 parent = getpid();
570 sprintf(tmpname, "fcntl2.%d", parent);
595 if ((kill(parent, SIGUSR1)) < 0) {
596 tst_resm(TFAIL, "Attempt to send signal to parent " "failed");
624 * not, the parent pid will be returned in l_pid and the type of
676 if (flock.l_pid != parent) {
679 "should be parent's id of %d",
680 test + 1, flock.l_pid, parent);
687 "should be parent's first lock type of %d",
729 * Lock should succeed after blocking and parent releases
730 * lock, tell the parent to release the locks.
749 if (self_exec(argv0, "nd", 1, parent) < 0) {
797 /* set the initial parent lock on the file */
799 tst_resm(TFAIL, "First parent lock failed");
811 /* set the second parent lock */
813 tst_resm(TFAIL, "Second parent lock failed");
836 thiscase->a_type, fd, test, parent) < 0) {
864 * setup lock structure for parent to delete
872 tst_resm(TFAIL, "Attempt to release parent "
908 * as it may have terminated abnormally while parent
922 * Set flag to let parent know that child is ready to have lock
949 maybe_run_child(&do_usleep_child, "nd", 1, &parent);
955 &fd, &test, &parent);
1067 /* Set the initial parent lock on the file */
1069 tst_resm(TFAIL, "First parent lock failed");
1087 thiscase->a_type, fd, test, parent) < 0) {
1116 * Set up lock structure for parent to delete
1124 tst_resm(TFAIL, "Attempt to release parent lock "