Merge pull request #575 from EreMaijala/main-issue-537

Close child info pipes when RDB save thread is done.
This commit is contained in:
Malavan Sotheeswaran authored and GitHub committed 2023-02-21 17:47:43 -05:00
commit 4ac449aee7
1 file changed
+1
+1
View File
@@ -2219,6 +2219,7 @@ void checkChildrenDone(void) {
g_pserver->rdbThreadVars.fRdbThreadCancel = false;
g_pserver->rdbThreadVars.fDone = false;
if (exitcode == 0) receiveChildInfo();
closeChildInfoPipe();
}
}
else if ((pid = waitpid(-1, &statloc, WNOHANG)) != 0) {