Lines Matching full:pid
6 * PID namespace.
43 pid_t pid = -1; in call_clone3_set_tid() local
51 pid = sys_clone3(&args, sizeof(args)); in call_clone3_set_tid()
52 if (pid < 0) { in call_clone3_set_tid()
57 if (pid == 0) { in call_clone3_set_tid()
61 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid()
68 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); in call_clone3_set_tid()
70 if (waitpid(pid, &status, 0) < 0) { in call_clone3_set_tid()
138 pid_t pid; in TEST() local
150 /* Find the current active PID */ in TEST()
151 pid = fork(); in TEST()
152 if (pid == 0) { in TEST()
153 TH_LOG("Child has PID %d", getpid()); in TEST()
156 ASSERT_GT(waitpid(pid, &status, 0), 0) in TEST()
157 TH_LOG("Waiting for child %d failed", pid); in TEST()
159 /* After the child has finished, its PID should be free. */ in TEST()
160 set_tid[0] = pid; in TEST()
171 set_tid[0] = pid; in TEST()