Lines Matching defs:pid
62 static struct timespec tst_start_time; /* valid only for test pid */
337 * test threads to show the same pid as their parent when CLONE_VM is
379 static void check_child_status(pid_t pid, int status)
384 tst_brk(TBROK, "Child (%i) killed by signal %s", pid,
389 tst_brk(TBROK, "Child (%i) exited abnormally", pid);
398 tst_brk(TBROK, "Invalid child (%i) exit value %i", pid, ret);
405 pid_t pid;
408 pid = wait(&status);
410 if (pid > 0) {
411 check_child_status(pid, status);
428 pid_t pid;
435 pid = fork();
436 if (pid < 0)
439 if (!pid)
442 return pid;
451 pid_t pid;
456 pid = TST_RETRY_FUNC(tst_clone(args), TST_CHECK_ENOSPC);
458 switch (pid) {
467 if (!pid)
470 return pid;