/external/google-breakpad/src/client/linux/minidump_writer/ |
linux_core_dumper_unittest.cc | 76 pid_t child_pid; local 78 kCrashSignal, &child_pid)); 92 LinuxCoreDumper dumper(child_pid, core_file.c_str(), procfs_path.c_str());
|
/external/ltp/testcases/kernel/syscalls/clone/ |
clone07.c | 44 static int child_pid; variable 64 child_pid = ltp_clone(SIGCHLD, do_child, NULL, 67 if (child_pid < 0) 117 if (child_pid == 0) { 126 if (child_pid != 0)
|
/external/ltp/testcases/kernel/syscalls/fork/ |
fork01.c | 109 * child_pid - the child side of the test 112 static void child_pid(void) function 185 child_pid();
|
/external/ltp/testcases/kernel/syscalls/ptrace/ |
ptrace03.c | 120 pid_t child_pid; local 142 switch (child_pid = FORK_OR_VFORK()) { 179 if ((waitpid(child_pid, &status, 0)) < 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
2-1.c | 87 int *child_pid; local 108 child_pid = malloc(nb_child * sizeof(int)); 132 child_pid[i] = fork(); 133 if (child_pid[i] == -1) { 136 } else if (child_pid[i] == 0) { 159 if (kill(child_pid[nb_child - 1], SIGTERM) != 0) { 174 if (kill(child_pid[i], SIGKILL) != 0) {
|
2-2.c | 88 int *child_pid; local 109 child_pid = malloc(nb_child * sizeof(int)); 110 if (child_pid == NULL) { 136 child_pid[i] = fork(); 137 if (child_pid[i] == -1) { 140 } else if (child_pid[i] == 0) { 163 if (kill(child_pid[nb_child - 1], SIGTERM) != 0) { 178 if (kill(child_pid[i], SIGKILL) != 0) {
|
9-1.c | 98 static void kill_children(int *child_pid, int count) 103 kill(child_pid[i], SIGTERM); 104 free(child_pid); 109 int *child_pid, oldcount, newcount, shm_id, i; local 126 child_pid = malloc(nb_cpu * sizeof(int)); 156 child_pid[i] = fork(); 157 if (child_pid[i] == -1) { 159 kill_children(child_pid, i); 161 } else if (child_pid[i] == 0) { 170 child_pid[i] = fork() [all...] |
/external/ltp/testcases/kernel/syscalls/capset/ |
capset02.c | 105 static pid_t child_pid = -1; variable 193 if (0 < child_pid) { 194 kill(child_pid, SIGTERM); 237 child_pid = FORK_OR_VFORK(); 238 if (child_pid == -1) 240 else if (child_pid == 0) { 250 header.pid = child_pid;
|
/external/ltp/testcases/kernel/syscalls/fanotify/ |
fanotify07.c | 63 static pid_t child_pid[MAX_CHILDREN]; variable 91 child_pid[i] = SAFE_FORK(); 92 if (!child_pid[i]) { 107 SAFE_KILL(child_pid[i], SIGKILL); 110 SAFE_WAITPID(child_pid[i], &child_ret, 0);
|
fanotify03.c | 61 static pid_t child_pid; variable 112 child_pid = SAFE_FORK(); 113 if (child_pid == 0) { 194 } else if (event->pid != child_pid) { 200 (unsigned)child_pid,
|
/external/ltp/testcases/kernel/syscalls/ipc/msgrcv/ |
msgrcv07.c | 73 pid_t child_pid; local 89 child_pid = tst_fork(); 90 if (child_pid == -1) { 92 } else if (child_pid > 0) { 93 wait4child(child_pid, "MSG_EXCEPT"); 115 pid_t child_pid; local 127 child_pid = tst_fork(); 128 if (child_pid == -1) { 130 } else if (child_pid > 0) { 131 wait4child(child_pid, "MSG_NOERROR") [all...] |
/external/ltp/testcases/kernel/syscalls/sendfile/ |
sendfile05.c | 66 pid_t child_pid; variable 112 kill(child_pid, SIGKILL); 195 child_pid = FORK_OR_VFORK(); 196 if (child_pid < 0) { 201 if (!child_pid) { /* child */
|
sendfile06.c | 50 static pid_t child_pid; variable 89 SAFE_KILL(cleanup, child_pid, SIGKILL); 96 SAFE_KILL(cleanup, child_pid, SIGKILL); 174 child_pid = FORK_OR_VFORK(); 175 if (child_pid < 0) { 181 if (!child_pid) {
|
sendfile02.c | 72 pid_t child_pid; variable 133 kill(child_pid, SIGKILL); 233 child_pid = FORK_OR_VFORK(); 234 if (child_pid < 0) { 239 if (!child_pid) { /* child */
|
sendfile04.c | 71 pid_t child_pid; variable 142 kill(child_pid, SIGKILL); 230 child_pid = FORK_OR_VFORK(); 231 if (child_pid < 0) { 236 if (!child_pid) { /* child */
|
/system/connectivity/wificond/tests/ |
shell_utils.cpp | 68 const pid_t child_pid = fork(); local 69 if (child_pid == -1) { 73 if (child_pid == 0) { // We are in the child process. 114 auto NeedToWaitForChild = [child_pid, &wait_status, &waitpid_ret]() { 116 waitpid_ret = waitpid(child_pid, &wait_status, WNOHANG); 131 if (waitpid_ret != child_pid) { 132 int kill_ret = kill(child_pid, SIGKILL); 146 if (waitpid_ret == child_pid && WIFEXITED(wait_status)) {
|
/device/google/marlin/dataservices/datatop/src/ |
datatop_sys_snap.c | 75 pid_t child_pid; local 88 child_pid = fork(); 89 if (child_pid == 0) { 101 } else if (child_pid < 0) { 105 waitpid(child_pid, &return_status, 0);
|
/external/curl/lib/ |
curl_ntlm_wb.c | 118 pid_t child_pid; local 192 child_pid = fork(); 193 if(child_pid == -1) { 200 else if(!child_pid) { 241 conn->ntlm_auth_hlpr_pid = child_pid;
|
/external/e2fsprogs/misc/ |
logsave.c | 41 static pid_t child_pid = -1; variable 156 if (child_pid > 0) 157 kill(child_pid, sig); 199 child_pid = pid; 205 child_pid = -1;
|
/external/google-breakpad/src/client/mac/tests/ |
crash_generation_server_test.cc | 82 pid_t child_pid; member in class:__anon20752::CrashGenerationServerTest 93 child_pid = (pid_t)-1; 157 self->child_pid = client_info.pid(); 205 ASSERT_EQ(pid, child_pid);
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl11.c | 57 pid_t parent_pid, child_pid; variable 260 if ((child_pid = FORK_OR_VFORK()) == 0) { /* parent */ 270 } else if (child_pid == -1)
|
fcntl19.c | 61 pid_t parent_pid, child_pid; variable 299 if ((child_pid = FORK_OR_VFORK()) == 0) { /* child */ 310 } else if (child_pid < 0) {
|
fcntl20.c | 57 pid_t parent_pid, child_pid; variable 298 if ((child_pid = FORK_OR_VFORK()) == 0) { /* child */ 311 if (child_pid < 0) {
|
fcntl21.c | 56 pid_t parent_pid, child_pid; variable 306 if ((child_pid = FORK_OR_VFORK()) == 0) { 318 if (child_pid < 0) {
|
/external/ltp/testcases/kernel/syscalls/migrate_pages/ |
migrate_pages01.c | 170 pid_t child_pid; local 177 child_pid = fork(); 178 switch (child_pid) { 193 SAFE_WAITPID(cleanup, child_pid, &status, 0);
|