don't use object sharing inside I/O threads, as a fix for a well known instability of VM introduced with the new object sharing code

This commit is contained in:
antirez
2010-07-22 13:08:02 +02:00
parent 1a71fb9669
commit 0e5441d816
3 changed files with 11 additions and 2 deletions

View 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);