Lines Matching defs:child
512 pid_t parent, child, grandchild;
527 /* fork() succeeded. Now in the child . */
531 printf("\tFork a child.\n");
532 child = fork();
533 if (child < 0) {
535 } else if (child > 0) {
540 fatal_error("arch_prctl test child exit");
548 printf("\tTest XCOMP_PERM at child.\n");
555 printf("\tTest dynamic sigaltstack at child:\n");
559 printf("\tTest XCOMP_PERM again at child.\n");
568 /* fork() succeeded. Now in the (grand)child. */
640 pid_t child, grandchild;
642 child = fork();
643 if (child < 0) {
646 } else if (child > 0) {
652 fatal_error("fork test child");
655 /* fork() succeeded. Now in the child. */
665 /* fork() succeeded. Still in the first child. */
670 fatal_error("fork test grand child");
673 /* fork() succeeded. Now in the (grand)child. */
901 pid_t child;
904 child = fork();
905 if (child < 0) {
907 } else if (!child) {
921 ptracer_inject_tiledata(child);
923 ptrace(PTRACE_DETACH, child, NULL, NULL);