mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 08:41:21 +00:00
Change initialization to allow listening on both a port and socket
This commit is contained in:
@ -448,7 +448,8 @@ int rdbSaveBackground(char *filename) {
|
||||
if ((childpid = fork()) == 0) {
|
||||
/* Child */
|
||||
if (server.vm_enabled) vmReopenSwapFile();
|
||||
close(server.fd);
|
||||
if (server.ipfd > 0) close(server.ipfd);
|
||||
if (server.sofd > 0) close(server.sofd);
|
||||
if (rdbSave(filename) == REDIS_OK) {
|
||||
_exit(0);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user