Unverified Commit 6248127c authored by gourav's avatar gourav Committed by GitHub
Browse files

Use exitFromChild to exit from child process in linuxMadvFreeForkBugCheck (#9101)

parent 1a22445d
...@@ -5499,7 +5499,7 @@ int linuxMadvFreeForkBugCheck(void) { ...@@ -5499,7 +5499,7 @@ int linuxMadvFreeForkBugCheck(void) {
if (write(pipefd[1], &bug_found, sizeof(bug_found)) < 0) if (write(pipefd[1], &bug_found, sizeof(bug_found)) < 0)
serverLog(LL_WARNING, "Failed to write to parent: %s", strerror(errno)); serverLog(LL_WARNING, "Failed to write to parent: %s", strerror(errno));
exit(0); exitFromChild(0);
} else { } else {
/* Read the result from the child. */ /* Read the result from the child. */
ret = read(pipefd[0], &bug_found, sizeof(bug_found)); ret = read(pipefd[0], &bug_found, sizeof(bug_found));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment