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

This commit is contained in:
John.Koepi
2017-02-20 10:22:57 +01:00
committed by antirez
parent 76d87f47c7
commit 9b05aafb50
+1
View File
@@ -1357,6 +1357,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,