fix #2883, #2857 pipe fds leak when fork() failed on bg aof rw

This commit is contained in:
John.Koepi 2016-07-23 16:31:56 +02:00 committed by antirez
parent 76d87f47c7
commit 9b05aafb50

View File

@ -1357,6 +1357,7 @@ int rewriteAppendOnlyFileBackground(void) {
serverLog(LL_WARNING, serverLog(LL_WARNING,
"Can't rewrite append only file in background: fork: %s", "Can't rewrite append only file in background: fork: %s",
strerror(errno)); strerror(errno));
aofClosePipes();
return C_ERR; return C_ERR;
} }
serverLog(LL_NOTICE, serverLog(LL_NOTICE,