Searched refs:childpid (Results 1 – 7 of 7) sorted by relevance
/third_party/ltp/testcases/kernel/pty/ |
D | hangup01.c | 56 pid_t childpid; variable 63 if (0 < childpid) { in cleanup() 66 if (kill(childpid, 0) == 0 || errno == ESRCH) { in cleanup() 69 (void)kill(childpid, 15); in cleanup() 72 if (waitpid(childpid, &status, WNOHANG) < 0) { in cleanup() 74 "waitpid(%d, ...) failed", childpid); in cleanup() 86 void parent(int masterfd, int childpid) in parent() argument 146 while (waitpid(childpid, &status, WNOHANG) < 0 && errno != ESRCH) ; in parent() 211 pid_t childpid; in main() local 226 childpid = fork(); in main() [all …]
|
/third_party/ltp/testcases/kernel/containers/userns/ |
D | userns02.c | 72 int childpid; in main() local 84 childpid = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, in main() 87 if (childpid < 0) in main() 92 sprintf(path, "/proc/%d/uid_map", childpid); in main() 99 sprintf(path, "/proc/%d/setgroups", childpid); in main() 105 sprintf(path, "/proc/%d/gid_map", childpid); in main() 113 tst_record_childstatus(cleanup, childpid); in main()
|
/third_party/ltp/testcases/kernel/syscalls/ioctl/ |
D | ioctl02.c | 80 static int parentpid, childpid; variable 132 childpid = FORK_OR_VFORK(); in main() 133 if (childpid < 0) in main() 136 if (childpid == 0) { /* child */ in main() 152 kill(childpid, SIGTERM); in main() 153 waitpid(childpid, NULL, 0); in main() 164 kill(childpid, SIGTERM); in main() 165 waitpid(childpid, NULL, 0); in main() 176 (void)kill(childpid, SIGTERM); in main() 177 (void)waitpid(childpid, NULL, 0); in main()
|
/third_party/ltp/testcases/kernel/syscalls/fork/ |
D | fork06.c | 55 int i, pid, status, childpid, succeed, fail; in main() local 78 childpid = wait(&status); in main() 79 if (pid != childpid) in main() 80 tst_resm(TFAIL, "pid from wait %d", childpid); in main()
|
/third_party/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl04.c | 90 int childpid; in check_filter_mode_inherit() local 93 childpid = SAFE_FORK(); in check_filter_mode_inherit() 94 if (childpid == 0) { in check_filter_mode_inherit() 99 wait4(childpid, &childstatus, 0, NULL); in check_filter_mode_inherit()
|
D | prctl06.c | 33 int childpid; in do_prctl() local 49 childpid = SAFE_FORK(); in do_prctl() 50 if (childpid == 0) { in do_prctl()
|
/third_party/libunwind/tests/ |
D | Ltest-mem-validate.c | 134 pid_t childpid = fork(); in main() local 135 if (!childpid) in main() 142 if (childpid) in main()
|