Lines Matching defs:childPid
313 static bool WaitProcessExit(int childPid, const char* name)
319 DFXLOGI("(%{public}ld) wait %{public}s(%{public}d) exit.", syscall(SYS_gettid), name, childPid);
322 ret = waitpid(childPid, &status, WNOHANG);
328 if (ret == childPid) {
334 DFXLOGI("(%{public}ld) wait for (%{public}d) timeout", syscall(SYS_gettid), childPid);
342 syscall(SYS_gettid), name, childPid, ret, status);
345 DFXLOGI("wait %{public}s(%{public}d) exit code: %{public}d", name, childPid, exitCode);
348 DFXLOGI("wait %{public}s(%{public}d) exit with sig: %{public}d", name, childPid, sigNum);
360 int childPid = -1;
372 childPid = ForkBySyscall();
373 if (childPid == 0) {
377 } else if (childPid < 0) {
382 WaitProcessExit(childPid, "processdump");
613 int childPid = ForkBySyscall();
614 if (childPid == 0) {
622 } else if (childPid < 0) {
629 DFXLOGI("Start wait for VmProcess(%{public}d) exit.", childPid);
631 if (!WaitProcessExit(childPid, "VmProcess") &&
634 DFXLOGI("Wait VmProcess(%{public}d) exit timeout in handling critical signal.", childPid);
637 kill(childPid, SIGKILL);