Searched defs:childpid (Results 1 - 10 of 10) sorted by relevance

/external/valgrind/drd/tests/
H A Dthreaded-fork.c20 pid_t childpid; local
28 childpid = fork();
29 switch (childpid) {
43 while (waitpid(childpid, &status, 0) != childpid) {
/external/valgrind/none/tests/
H A Dthreaded-fork.c18 pid_t childpid; local
25 childpid = fork();
26 switch( childpid ) {
41 while(waitpid(childpid, &status, 0) != childpid) {
/external/ltp/testcases/kernel/syscalls/fork/
H A Dfork06.c55 int i, pid, status, childpid, succeed, fail; local
78 childpid = wait(&status);
79 if (pid != childpid)
80 tst_resm(TFAIL, "pid from wait %d", childpid);
/external/ltp/testcases/kernel/containers/userns/
H A Duserns02.c72 int childpid; local
84 childpid = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD,
87 if (childpid < 0)
92 sprintf(path, "/proc/%d/uid_map", childpid);
99 sprintf(path, "/proc/%d/setgroups", childpid);
105 sprintf(path, "/proc/%d/gid_map", childpid);
113 tst_record_childstatus(cleanup, childpid);
/external/ltp/testcases/kernel/pty/
H A Dhangup01.c58 pid_t childpid; variable
65 if (0 < childpid) {
68 if (kill(childpid, 0) == 0 || errno == ESRCH) {
71 (void)kill(childpid, 15);
74 if (waitpid(childpid, &status, WNOHANG) < 0) {
76 "waitpid(%d, ...) failed", childpid);
88 void parent(int masterfd, int childpid) argument
148 while (waitpid(childpid, &status, WNOHANG) < 0 && errno != ESRCH) ;
213 pid_t childpid; local
230 childpid
[all...]
/external/ltp/testcases/kernel/ipc/ipc_stress/
H A Dsemaphore_test_02.c115 * childpid: array containing process id's of the child processes
120 int childpid[MAX_CHILDREN]; variable
166 childpid[proc] = pid;
188 waitpid(childpid[proc], &status, 0);
H A Dsemaphore_test_03.c131 * childpid: array containing process id's of the child processes
136 pid_t childpid[MAX_CHILDREN]; variable
188 childpid[proc] = pid;
210 waitpid(childpid[proc], &status, 0);
H A Dshmem_test_04.c136 * childpid:
143 int childpid[MAXPROCS]; variable
228 childpid[proc] = pid;
335 kill(childpid[i], SIGKILL);
/external/ltp/testcases/kernel/syscalls/ioctl/
H A Dioctl02.c80 static int parentpid, childpid; variable
132 childpid = FORK_OR_VFORK();
133 if (childpid < 0)
136 if (childpid == 0) { /* child */
152 kill(childpid, SIGTERM);
153 waitpid(childpid, NULL, 0);
164 kill(childpid, SIGTERM);
165 waitpid(childpid, NULL, 0);
176 (void)kill(childpid, SIGTERM);
177 (void)waitpid(childpid, NUL
[all...]
/external/selinux/sandbox/
H A Dseunshare.c141 int childpid; local
147 childpid = fork();
148 if (childpid == -1) {
153 if (childpid == 0) {
161 waitpid(childpid, &status, 0);

Completed in 537 milliseconds