提交 b83f9fea 编写于 作者: J John.Koepi 提交者: antirez

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

上级 10dbb5cd
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册