Lines Matching defs:pid
206 int pid = -1;
235 pid = Zygote.forkAndSpecialize(parsedArgs.uid, parsedArgs.gid, parsedArgs.gids,
250 if (pid == 0) {
260 // in parent...pid of < 0 means failure
263 return handleParentProc(pid, descriptors, serverPipeFd, parsedArgs);
565 * After the zygote process reads these it will write the pid of
983 * @param pid != 0; pid of child if > 0 or indication of failed fork
992 private boolean handleParentProc(int pid,
995 if (pid > 0) {
996 setChildPgid(pid);
1006 if (pipeFd != null && pid > 0) {
1012 Log.w(TAG, "Error reading pid from wrapped process, child may have died", ex);
1020 // Ensure that the pid reported by the wrapped process is either the
1024 while (parentPid > 0 && parentPid != pid) {
1028 Log.i(TAG, "Wrapped process has pid " + innerPid);
1029 pid = innerPid;
1032 Log.w(TAG, "Wrapped process reported a pid that is not a child of "
1033 + "the process that we forked: childPid=" + pid
1040 mSocketOutStream.writeInt(pid);
1062 private void setChildPgid(int pid) {
1065 ZygoteInit.setpgid(pid, ZygoteInit.getpgid(peer.getPid()));