add background jobs initialization to Redis main init function

This commit is contained in:
antirez
2011-09-14 10:47:31 +02:00
parent ed56ad5689
commit af14408e5c
+2
View File
@@ -29,6 +29,7 @@
#include "redis.h"
#include "slowlog.h"
#include "bio.h"
#ifdef HAVE_BACKTRACE
#include <execinfo.h>
@@ -964,6 +965,7 @@ void initServer() {
if (server.vm_enabled) vmInit();
slowlogInit();
bioInit();
srand(time(NULL)^getpid());
}