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

Commit d84afeb6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Log the errno if calling fork() fails"

parents 46a915f6 3588c912
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2127,6 +2127,8 @@ pid_t zygote::ForkCommon(JNIEnv* env, bool is_system_server,

    // Reset the fd to the unsolicited zygote socket
    gSystemServerSocketFd = -1;
  } else if (pid == -1) {
    ALOGE("Failed to fork child process: %s (%d)", strerror(errno), errno);
  } else {
    ALOGD("Forked child process %d", pid);
  }