From caa3614f785eecd539cafef467010db0f2af5cbe Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Wed, 17 Jul 2013 07:22:58 +0200 Subject: [PATCH] rbthreads osx fixes --- plugins/rbthreads/rbthreads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/rbthreads/rbthreads.c b/plugins/rbthreads/rbthreads.c index a3368576..a7de487e 100644 --- a/plugins/rbthreads/rbthreads.c +++ b/plugins/rbthreads/rbthreads.c @@ -51,7 +51,7 @@ static VALUE uwsgi_rb_thread_core(void *arg) { urbt->queue = event_queue_init(); urbt->wsgi_req = wsgi_req; - uwsgi_add_sockets_to_queue(urbt->queue, core_id); + uwsgi_add_sockets_to_queue(urbt->queue, (int)core_id); if (uwsgi.signal_socket > -1) { event_queue_add_fd_read(urbt->queue, uwsgi.signal_socket); @@ -61,7 +61,7 @@ static VALUE uwsgi_rb_thread_core(void *arg) { // ok we are ready, let's start managing requests and signals while (uwsgi.workers[uwsgi.mywid].manage_next_request) { - wsgi_req_setup(wsgi_req, core_id, NULL); + wsgi_req_setup(wsgi_req, (int)core_id, NULL); rb_thread_call_without_gvl(uwsgi_rb_thread_accept, urbt, NULL, NULL); // accept failed ?