mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-01 11:15:57 +00:00
improved the pyshell
This commit is contained in:
@@ -1226,7 +1226,8 @@ void uwsgi_python_fixup() {
|
||||
}
|
||||
|
||||
void uwsgi_python_hijack(void) {
|
||||
if (up.pyshell) {
|
||||
// the pyshell will be execute only in the first worker
|
||||
if (up.pyshell && uwsgi.mywid == 1) {
|
||||
PyImport_ImportModule("readline");
|
||||
PyRun_InteractiveLoop(stdin, "uwsgi");
|
||||
exit(0);
|
||||
|
||||
Reference in New Issue
Block a user