From bbf35be595cc97c261dff60fb2045edf48e521db Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Wed, 16 Jan 2013 16:58:30 +0100 Subject: [PATCH] fixed mule management --- core/mule.c | 2 +- plugins/python/python_plugin.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/core/mule.c b/core/mule.c index f4d4f48b..12a6fda7 100644 --- a/core/mule.c +++ b/core/mule.c @@ -82,7 +82,7 @@ void uwsgi_mule(int id) { if (uwsgi.p[i]->mule) { if (uwsgi.p[i]->mule(uwsgi.mules[id - 1].patch) == 1) { // never here - break; + end_me(1); } } } diff --git a/plugins/python/python_plugin.c b/plugins/python/python_plugin.c index 9f37bd0f..68df9d9b 100644 --- a/plugins/python/python_plugin.c +++ b/plugins/python/python_plugin.c @@ -1773,9 +1773,7 @@ int uwsgi_python_mule(char *opt) { if (uwsgi_endswith(opt, ".py")) { UWSGI_GET_GIL; - if (uwsgi_pyimport_by_filename("__main__", opt) == NULL) { - return 0; - } + uwsgi_pyimport_by_filename("__main__", opt); UWSGI_RELEASE_GIL; return 1; }