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/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 59 pid_t childpid; variable
66 if (0 < childpid) {
69 if (kill(childpid, 0) == 0 || errno == ESRCH) {
72 (void)kill(childpid, 15);
75 if (waitpid(childpid, &status, WNOHANG) < 0) {
77 "waitpid(%d, ...) failed", childpid);
89 void parent(int masterfd, int childpid)
149 while (waitpid(childpid, &status, WNOHANG) < 0 && errno != ESRCH) ;
214 pid_t childpid; local
229 childpid = fork()
    [all...]
  /external/linux-kselftest/tools/testing/selftests/sync/
sync_test.c 43 pid_t childpid; local
47 childpid = fork();
49 if (childpid) {
50 waitpid(childpid, &result, 0);
  /external/ltp/testcases/kernel/syscalls/ioctl/
ioctl02.c 81 static int parentpid, childpid; variable
133 childpid = FORK_OR_VFORK();
134 if (childpid < 0)
137 if (childpid == 0) { /* child */
153 kill(childpid, SIGTERM);
154 waitpid(childpid, NULL, 0);
165 kill(childpid, SIGTERM);
166 waitpid(childpid, NULL, 0);
177 (void)kill(childpid, SIGTERM);
178 (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 717 func resumeChildThread(kernel32 *syscall.DLL, childpid int) error {
747 for te.OwnerProcessID != uint32(childpid) {
  /prebuilts/go/linux-x86/src/runtime/
syscall_windows_test.go 717 func resumeChildThread(kernel32 *syscall.DLL, childpid int) error {
747 for te.OwnerProcessID != uint32(childpid) {

Completed in 402 milliseconds