Commit 9b05aafb authored by John.Koepi's avatar John.Koepi Committed by antirez
Browse files

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

parent 76d87f47
...@@ -1357,6 +1357,7 @@ int rewriteAppendOnlyFileBackground(void) { ...@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment