mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-07 14:11:46 +00:00
Allow --async 1 (i.e. sync mode, but with a different loop engine)
This commit is contained in:
@@ -361,7 +361,7 @@ void uwsgi_python_atexit() {
|
||||
return;
|
||||
|
||||
// managing atexit in async mode is a real pain...skip it for now
|
||||
if (uwsgi.async > 1)
|
||||
if (uwsgi.async > 0)
|
||||
return;
|
||||
realstuff:
|
||||
|
||||
@@ -1126,7 +1126,7 @@ void uwsgi_python_init_apps() {
|
||||
}
|
||||
|
||||
// prepare for stack suspend/resume
|
||||
if (uwsgi.async > 1) {
|
||||
if (uwsgi.async > 0) {
|
||||
up.current_recursion_depth = uwsgi_malloc(sizeof(int)*uwsgi.async);
|
||||
up.current_frame = uwsgi_malloc(sizeof(struct _frame)*uwsgi.async);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user