Close child info pipes when RDB save thread is done.

This commit is contained in:
Ere Maijala 2023-02-20 11:07:21 +02:00
parent 5f5eb0e1b0
commit db2c3cd7e8

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