Change initialization to allow listening on both a port and socket

This commit is contained in:
Pieter Noordhuis
2010-08-03 13:33:12 +02:00
parent 7e91f971f7
commit a5639e7dd9
6 changed files with 49 additions and 20 deletions

View File

@ -329,7 +329,10 @@ struct sharedObjectsStruct {
struct redisServer {
pthread_t mainthread;
int port;
int fd;
char *bindaddr;
char *sockpath;
int ipfd;
int sofd;
redisDb *db;
long long dirty; /* changes to DB from the last save */
list *clients;
@ -365,7 +368,6 @@ struct redisServer {
struct saveparam *saveparams;
int saveparamslen;
char *logfile;
char *bindaddr;
char *dbfilename;
char *appendfilename;
char *requirepass;