Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/pty/
H A 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 in main()
[all...]
/third_party/ltp/testcases/kernel/containers/userns/
H A Duserns02.c39 int childpid; in run() local
44 childpid = SAFE_CLONE(&args); in run()
45 if (!childpid) { in run()
53 sprintf(path, "/proc/%d/uid_map", childpid); in run()
57 sprintf(path, "/proc/%d/setgroups", childpid); in run()
61 sprintf(path, "/proc/%d/gid_map", childpid); in run()
/third_party/ltp/testcases/kernel/syscalls/ioctl/
H A 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, NUL in main()
[all...]
/third_party/ltp/testcases/kernel/syscalls/fork/
H A 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/libunwind/libunwind/tests/
H A DLtest-mem-validate.c134 pid_t childpid = fork(); in main() local
135 if (!childpid) in main()
142 if (childpid) in main()
/third_party/ltp/testcases/kernel/syscalls/prctl/
H A Dprctl06.c39 int childpid; in do_prctl() local
55 childpid = SAFE_FORK(); in do_prctl()
56 if (childpid == 0) { in do_prctl()
H A Dprctl04.c102 int childpid; in check_filter_mode_inherit() local
105 childpid = SAFE_FORK(); in check_filter_mode_inherit()
106 if (childpid == 0) { in check_filter_mode_inherit()
111 wait4(childpid, &childstatus, 0, NULL); in check_filter_mode_inherit()

Completed in 2 milliseconds