From b435f64510a032528c42fc1cfc4eca15a4474a1b Mon Sep 17 00:00:00 2001 From: Anko painting Date: Thu, 2 Sep 2010 21:13:27 -0700 Subject: [PATCH] fix for issue 237 --- src/vm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vm.c b/src/vm.c index 50fb326d..635016b8 100644 --- a/src/vm.c +++ b/src/vm.c @@ -110,6 +110,9 @@ void vmInit(void) { /* LZF requires a lot of stack */ pthread_attr_init(&server.io_threads_attr); pthread_attr_getstacksize(&server.io_threads_attr, &stacksize); + if(!stacksize) { + stacksize = 1; + } while (stacksize < REDIS_THREAD_STACK_SIZE) stacksize *= 2; pthread_attr_setstacksize(&server.io_threads_attr, stacksize); /* Listen for events in the threaded I/O pipe */ -- 2.49.0