diff options
author | John.Koepi <john.koepi@gmail.com> | 2016-07-23 16:31:56 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2017-02-20 10:22:57 +0100 |
commit | 9b05aafb50348838f45bfddcd689e7d8d1d3c950 (patch) | |
tree | b71aff642d9b50aad4623f35455fd8ff0f06665e /src | |
parent | 76d87f47c7075a04dfd759fc5bd102dfad005dcc (diff) | |
download | redis-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |