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 2023-02-21 17:47:43 -05:00 committed by GitHub
commit 4ac449aee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {