mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 01:31:21 +00:00
Change initialization to allow listening on both a port and socket
This commit is contained in:
@ -588,7 +588,8 @@ int rewriteAppendOnlyFileBackground(void) {
|
||||
char tmpfile[256];
|
||||
|
||||
if (server.vm_enabled) vmReopenSwapFile();
|
||||
close(server.fd);
|
||||
if (server.ipfd > 0) close(server.ipfd);
|
||||
if (server.sofd > 0) close(server.sofd);
|
||||
snprintf(tmpfile,256,"temp-rewriteaof-bg-%d.aof", (int) getpid());
|
||||
if (rewriteAppendOnlyFile(tmpfile) == REDIS_OK) {
|
||||
_exit(0);
|
||||
|
Reference in New Issue
Block a user