summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn.Koepi <john.koepi@gmail.com>2016-07-23 16:31:56 +0200
committerantirez <antirez@gmail.com>2017-02-20 10:22:57 +0100
commit9b05aafb50348838f45bfddcd689e7d8d1d3c950 (patch)
treeb71aff642d9b50aad4623f35455fd8ff0f06665e /src
parent76d87f47c7075a04dfd759fc5bd102dfad005dcc (diff)
downloadredis-9b05aafb50348838f45bfddcd689e7d8d1d3c950.tar.gz
fix #2883, #2857 pipe fds leak when fork() failed on bg aof rw
Diffstat (limited to 'src')
-rw-r--r--src/aof.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aof.c b/src/aof.c
index 07d8561da..f73da1e25 100644
--- a/src/aof.c
+++ b/src/aof.c
@@ -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,