Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/pty/
Dhangup01.c59 pid_t childpid; variable
66 if (0 < childpid) { in cleanup()
69 if (kill(childpid, 0) == 0 || errno == ESRCH) { in cleanup()
72 (void)kill(childpid, 15); in cleanup()
75 if (waitpid(childpid, &status, WNOHANG) < 0) { in cleanup()
77 "waitpid(%d, ...) failed", childpid); in cleanup()
89 void parent(int masterfd, int childpid) in parent() argument
149 while (waitpid(childpid, &status, WNOHANG) < 0 && errno != ESRCH) ; in parent()
214 pid_t childpid; in main() local
229 childpid = fork(); in main()
[all …]
/external/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()
/external/ltp/testcases/kernel/syscalls/ioctl/
Dioctl02.c81 static int parentpid, childpid; variable
133 childpid = FORK_OR_VFORK(); in main()
134 if (childpid < 0) in main()
137 if (childpid == 0) { /* child */ in main()
153 kill(childpid, SIGTERM); in main()
154 waitpid(childpid, NULL, 0); in main()
165 kill(childpid, SIGTERM); in main()
166 waitpid(childpid, NULL, 0); in main()
177 (void)kill(childpid, SIGTERM); in main()
178 (void)waitpid(childpid, NULL, 0); in main()
/external/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()
/external/linux-kselftest/tools/testing/selftests/sync/
Dsync_test.c43 pid_t childpid; in run_test() local
47 childpid = fork(); in run_test()
49 if (childpid) { in run_test()
50 waitpid(childpid, &result, 0); in run_test()
/external/selinux/sandbox/
Dseunshare.c141 int childpid; in spawn_command() local
147 childpid = fork(); in spawn_command()
148 if (childpid == -1) { in spawn_command()
153 if (childpid == 0) { in spawn_command()
161 waitpid(childpid, &status, 0); in spawn_command()
/external/u-boot/common/
Dcli_hush.c1425 pid_t childpid; local
1432 while ((childpid = waitpid(-1, &status, attributes)) > 0) {
1436 if (fg_pipe->progs[i].pid == childpid) {
1447 while (prognum < pi->num_progs && pi->progs[prognum].pid != childpid) {
1455 debug_printf("checkjobs: pid %d was not in our list!\n", childpid);
1484 if (childpid == -1 && errno != ECHILD)