fixed a stupid bug with thread stacksize

This commit is contained in:
roberto@mrspurr
2011-08-11 07:32:02 +02:00
parent de7be379c4
commit 287df9ef86
+2 -2
View File
@@ -2569,7 +2569,7 @@ void uwsgi_ignition() {
}
for (i = 1; i < uwsgi.threads; i++) {
long j = i;
pthread_create(&uwsgi.core[i]->thread_id, NULL, zeromq_loop, (void *) j);
pthread_create(&uwsgi.core[i]->thread_id, &uwsgi.threads_attr, zeromq_loop, (void *) j);
}
}
@@ -2587,7 +2587,7 @@ void uwsgi_ignition() {
}
for (i = 1; i < uwsgi.threads; i++) {
long j = i;
pthread_create(&uwsgi.core[i]->thread_id, NULL, simple_loop, (void *) j);
pthread_create(&uwsgi.core[i]->thread_id, &uwsgi.threads_attr, simple_loop, (void *) j);
}
}