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 10dbb5cd33
commit b83f9fea81

View File

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