summaryrefslogtreecommitdiff
path: root/src/aof.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-07-05 11:47:20 +0200
committerantirez <antirez@gmail.com>2013-07-05 11:47:20 +0200
commit98eecb70ebd215d4bc5a9a6917cd9ef04f9e01cf (patch)
treed2baa963e4badd0629486752fc2ca79cc172d6fb /src/aof.c
parent2160effc78463d6602082302486beb51eb6a999d (diff)
downloadredis-98eecb70ebd215d4bc5a9a6917cd9ef04f9e01cf.tar.gz
Binding multiple IPs done properly with multiple sockets.
Diffstat (limited to 'src/aof.c')
-rw-r--r--src/aof.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/aof.c b/src/aof.c
index 9ad85c536..89f17abab 100644
--- a/src/aof.c
+++ b/src/aof.c
@@ -962,8 +962,7 @@ int rewriteAppendOnlyFileBackground(void) {
char tmpfile[256];
/* Child */
- if (server.ipfd > 0) close(server.ipfd);
- if (server.sofd > 0) close(server.sofd);
+ closeListeningSockets(0);
redisSetProcTitle("redis-aof-rewrite");
snprintf(tmpfile,256,"temp-rewriteaof-bg-%d.aof", (int) getpid());
if (rewriteAppendOnlyFile(tmpfile) == REDIS_OK) {