]> git.saurik.com Git - redis.git/blobdiff - src/redis.c
don't use object sharing inside I/O threads, as a fix for a well known instability...
[redis.git] / src / redis.c
index 86536b4375a0ec0938da0b6b8691a62194efb819..433eae37eb937d873508b71848b95c32e953a297 100644 (file)
@@ -760,6 +760,7 @@ void initServer() {
     signal(SIGPIPE, SIG_IGN);
     setupSigSegvAction();
 
+    server.mainthread = pthread_self();
     server.devnull = fopen("/dev/null","w");
     if (server.devnull == NULL) {
         redisLog(REDIS_WARNING, "Can't open /dev/null: %s", server.neterr);