mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-04 04:31:44 +00:00
fixed threading in command mode
This commit is contained in:
@@ -1434,6 +1434,7 @@ void uwsgi_python_hijack(void) {
|
||||
FILE *pyfile;
|
||||
if (up.pyrun) {
|
||||
uwsgi.workers[uwsgi.mywid].hijacked = 1;
|
||||
UWSGI_GET_GIL;
|
||||
pyfile = fopen(up.pyrun, "r");
|
||||
if (!pyfile) {
|
||||
uwsgi_error_open(up.pyrun);
|
||||
|
||||
@@ -2217,7 +2217,6 @@ skipzero:
|
||||
|
||||
|
||||
#ifdef UWSGI_THREADING
|
||||
if (uwsgi.sockets || uwsgi.gateways_cnt) {
|
||||
if (uwsgi.has_threads) {
|
||||
if (uwsgi.threads > 1)
|
||||
uwsgi.current_wsgi_req = threaded_current_wsgi_req;
|
||||
@@ -2238,7 +2237,6 @@ skipzero:
|
||||
uwsgi.p[i]->enable_threads();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!uwsgi.sockets && !uwsgi.gateways_cnt && !uwsgi.no_server && !uwsgi.udp_socket && !uwsgi.emperor_dir && !uwsgi.command_mode) {
|
||||
|
||||
Reference in New Issue
Block a user