Lines Matching full:pid
6 * PID namespace.
45 pid_t pid = -1; in call_clone3_set_tid() local
53 pid = sys_clone3(&args, sizeof(args)); in call_clone3_set_tid()
54 if (pid < 0) { in call_clone3_set_tid()
59 if (pid == 0) { in call_clone3_set_tid()
63 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid()
70 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); in call_clone3_set_tid()
72 if (waitpid(pid, &status, 0) < 0) { in call_clone3_set_tid()
140 pid_t pid; in TEST() local
152 /* Find the current active PID */ in TEST()
153 pid = fork(); in TEST()
154 if (pid == 0) { in TEST()
155 TH_LOG("Child has PID %d", getpid()); in TEST()
158 ASSERT_GT(waitpid(pid, &status, 0), 0) in TEST()
159 TH_LOG("Waiting for child %d failed", pid); in TEST()
161 /* After the child has finished, its PID should be free. */ in TEST()
162 set_tid[0] = pid; in TEST()
173 set_tid[0] = pid; in TEST()