Lines Matching defs:pid
43 pid_t pid = -1;
51 pid = sys_clone3(&args, sizeof(args));
52 if (pid < 0) {
57 if (pid == 0) {
68 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid);
70 if (waitpid(pid, &status, 0) < 0) {
138 pid_t pid;
151 pid = fork();
152 if (pid == 0) {
156 ASSERT_GT(waitpid(pid, &status, 0), 0)
157 TH_LOG("Waiting for child %d failed", pid);
160 set_tid[0] = pid;
171 set_tid[0] = pid;