Lines Matching defs:child

535 static int parent, child, status, fail = 0;
572 /* setup signal handler for signal from child */
622 * Check to see if child lock will succeed. If it will, FLOCK
708 tst_resm(TFAIL, "Attempt to set child NONBLOCKING "
731 * Do the lock in this process, send the signal in a child
737 * check that reliably in the child. (We'd
760 tst_resm(TFAIL, "Attempt to set child BLOCKING "
825 /* Mask SIG_USR1 before forking child, to avoid race */
831 if ((child = FORK_OR_VFORK()) == 0) {
844 if (child < 0)
849 * Wait for a signal from the child then remove
851 * pause just in case the child never signals us.
860 "signal SIGUSR1 from child");
865 * blocking lock then wait for child to exit
881 * child doesn't terminate on its own accord
885 /* wait for the child to terminate and close the file */
886 waitpid(child, &status, 0);
905 * Timer has runout and child has not signaled, need
906 * to kill off the child as it appears it will not
911 if (kill(child, 0) == 0) {
912 kill(child, SIGKILL);
913 perror("The child didnot terminate on its own accord");
922 * Set flag to let parent know that child is ready to have lock
1082 if ((child = FORK_OR_VFORK()) == 0) {
1095 if (child < 0)
1099 * Wait for a signal from the child then remove blocking lock.
1101 * child doesn't terminate on its own accord
1111 "SIGUSR1 from child");
1117 * blocking lock then wait for child to exit
1133 * child doesn't terminate on its own accord
1137 waitpid(child, &status, 0);
1140 tst_resm(TFAIL, "child returned bad exit status");
1146 tst_resm(TFAIL, "child returned status 0x%x", status);