diff --git a/plugins/ugreen/ugreen.c b/plugins/ugreen/ugreen.c index aed78205..93749025 100644 --- a/plugins/ugreen/ugreen.c +++ b/plugins/ugreen/ugreen.c @@ -41,7 +41,14 @@ static void u_green_schedule_to_req() { // first round ? if (!uwsgi.wsgi_req->suspended) { ug.contexts[id].uc_link = &ug.main; +#ifdef __e2k__ + if (makecontext_e2k(&ug.contexts[id], async_schedule_to_req_green, 0) < 0) { + uwsgi_error("makecontext_e2k()"); + exit(1); + } +#else makecontext(&ug.contexts[id], async_schedule_to_req_green, 0); +#endif uwsgi.wsgi_req->suspended = 1; }