18 lines
650 B
Diff
18 lines
650 B
Diff
diff -ruaN uwsgi-2.0.18/plugins/ugreen/ugreen.c my_uwsgi-2.0.18/plugins/ugreen/ugreen.c
|
|
--- uwsgi-2.0.18/plugins/ugreen/ugreen.c 2019-02-09 17:48:07.000000000 +0300
|
|
+++ my_uwsgi-2.0.18/plugins/ugreen/ugreen.c 2024-04-17 19:32:06.281306333 +0300
|
|
@@ -41,7 +41,13 @@
|
|
// first round ?
|
|
if (!uwsgi.wsgi_req->suspended) {
|
|
ug.contexts[id].uc_link = &ug.main;
|
|
+#ifdef __e2k__
|
|
+ int ret=makecontext_e2k(&ug.contexts[id], async_schedule_to_req_green, 0);
|
|
+ if (ret != 0)
|
|
+ return -1;
|
|
+#else
|
|
makecontext(&ug.contexts[id], async_schedule_to_req_green, 0);
|
|
+#endif
|
|
uwsgi.wsgi_req->suspended = 1;
|
|
}
|
|
|