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

This commit is contained in:
gourav
2021-06-17 13:37:38 -07:00
committed by GitHub
parent 1a22445d30
commit 6248127c43
+1 -1
View File
@@ -5499,7 +5499,7 @@ int linuxMadvFreeForkBugCheck(void) {
if (write(pipefd[1], &bug_found, sizeof(bug_found)) < 0)
serverLog(LL_WARNING, "Failed to write to parent: %s", strerror(errno));
exit(0);
exitFromChild(0);
} else {
/* Read the result from the child. */
ret = read(pipefd[0], &bug_found, sizeof(bug_found));