Lines Matching refs:pid
16 /* Test that /proc/loadavg correctly reports last pid in pid namespace. */27 pid_t pid;36 pid = fork();37 if (pid == -1)39 if (pid == 0) {52 /* pid 1 */56 pid = fork();57 if (pid == -1)59 if (pid == 0)61 if (waitpid(pid, NULL, 0) == -1)70 /* pid 2 */77 if (waitpid(pid, &wstatus, 0) == -1)