HomeSort by relevance Sort by last modified time
    Searched refs:childpid (Results 1 - 13 of 13) sorted by null

  /external/valgrind/drd/tests/
threaded-fork.c 20 pid_t childpid; local
28 childpid = fork();
29 switch (childpid) {
43 while (waitpid(childpid, &status, 0) != childpid) {
  /external/valgrind/none/tests/
threaded-fork.c 18 pid_t childpid; local
25 childpid = fork();
26 switch( childpid ) {
41 while(waitpid(childpid, &status, 0) != childpid) {
pth_term_signal.c 61 int childpid = fork(); local
63 if (-1 == childpid)
69 if ( ! childpid)
72 if (kill(childpid, SIGTERM))
79 if (childpid != waitpid(childpid, &status, 0))
  /external/linux-kselftest/tools/testing/selftests/sync/
sync_test.c 39 pid_t childpid; local
42 childpid = fork();
44 if (childpid) {
45 waitpid(childpid, &result, 0);
  /external/ltp/testcases/kernel/syscalls/fork/
fork06.c 55 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/
userns02.c 72 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/
hangup01.c 58 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)
148 while (waitpid(childpid, &status, WNOHANG) < 0 && errno != ESRCH) ;
213 pid_t childpid; local
230 childpid = fork()
    [all...]
  /external/ltp/testcases/kernel/syscalls/ioctl/
ioctl02.c 80 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, NULL, 0)
    [all...]
  /system/extras/tests/sdcard/
testcase.cpp 87 pid_t childpid = android::forkOrExit(); local
89 if (0 == childpid) { // I am a child, run the test.
sysutil.cpp 352 pid_t childpid = fork(); local
354 if (-1 == childpid)
359 return childpid;
  /external/selinux/sandbox/
seunshare.c 141 int childpid; local
147 childpid = fork();
148 if (childpid == -1) {
153 if (childpid == 0) {
161 waitpid(childpid, &status, 0);
  /prebuilts/go/darwin-x86/src/runtime/
syscall_windows_test.go 705 func resumeChildThread(kernel32 *syscall.DLL, childpid int) error {
735 for te.OwnerProcessID != uint32(childpid) {
  /prebuilts/go/linux-x86/src/runtime/
syscall_windows_test.go 705 func resumeChildThread(kernel32 *syscall.DLL, childpid int) error {
735 for te.OwnerProcessID != uint32(childpid) {

Completed in 785 milliseconds