Lines Matching refs:pid
80 pid_t pid;
83 while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
93 ALOGI("Process %d exited cleanly (%d)", pid, WEXITSTATUS(status));
97 ALOGI("Process %d exited due to signal (%d)", pid, WTERMSIG(status));
100 ALOGI("Process %d dumped core.", pid);
107 if (pid == gSystemServerPid) {
115 if (pid < 0 && errno != ECHILD) {
229 capheader.pid = 0;
436 pid_t pid = fork();
438 if (pid == 0) {
490 ALOGE("createProcessGroup(%d, %d) failed: %s", uid, pid, strerror(-rc));
580 } else if (pid > 0) {
583 return pid;
609 pid_t pid = ForkAndSpecializeCommon(env, uid, gid, gids,
614 if (pid > 0) {
616 ALOGI("System server process %d has been created", pid);
617 gSystemServerPid = pid;
619 // but it went unnoticed because we haven't published its pid yet. So
622 if (waitpid(pid, &status, WNOHANG) == pid) {
623 ALOGE("System server process %d has died. Restarting Zygote!", pid);
627 return pid;