Home
last modified time | relevance | path

Searched refs:childpid (Results 1 – 7 of 7) sorted by relevance

/third_party/ltp/testcases/kernel/pty/
Dhangup01.c56 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/
Duserns02.c72 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/
Dioctl02.c80 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/
Dfork06.c55 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/
Dprctl04.c90 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()
Dprctl06.c33 int childpid; in do_prctl() local
49 childpid = SAFE_FORK(); in do_prctl()
50 if (childpid == 0) { in do_prctl()
/third_party/libunwind/tests/
DLtest-mem-validate.c134 pid_t childpid = fork(); in main() local
135 if (!childpid) in main()
142 if (childpid) in main()