Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9bd8c3e authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Log the pid of the forked zygote child.

Useful to link together the pids of the zygote and its children in logcat
output.

Test: Flash and boot, run "adb logcat"
Change-Id: I524b70aed7d1ce7a378df0e2b2063e23f1f9a454
parent e051b0c9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -892,6 +892,8 @@ static pid_t ForkCommon(JNIEnv* env, bool is_system_server,

    // Turn fdsan back on.
    android_fdsan_set_error_level(fdsan_error_level);
  } else {
    ALOGD("Forked child process %d", pid);
  }

  // We blocked SIGCHLD prior to a fork, we unblock it here.