Allow --async 1 (i.e. sync mode, but with a different loop engine)

This commit is contained in:
Mike Kaplinskiy
2014-08-17 13:13:17 -04:00
parent f1cdf2890f
commit 1a4f333912
25 changed files with 45 additions and 45 deletions
+2 -2
View File
@@ -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);
}