From abe6168bc377ab4ef81cdb17e21135fc0e6e6ee7 Mon Sep 17 00:00:00 2001 From: "roberto@voldemort" Date: Tue, 7 Sep 2010 12:27:38 +0200 Subject: [PATCH] uwsgi.is_a_reload --- uwsgi.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/uwsgi.c b/uwsgi.c index 34cbf1c9..c8f09267 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -2706,6 +2706,19 @@ void init_uwsgi_embedded_module() { exit(1); } + if (uwsgi.is_a_reload) { + if (PyDict_SetItemString(uwsgi.embedded_dict, "is_a_reload", Py_True)) { + PyErr_Print(); + exit(1); + } + } + else { + if (PyDict_SetItemString(uwsgi.embedded_dict, "is_a_reload", Py_False)) { + PyErr_Print(); + exit(1); + } + } + uwsgi.embedded_args = PyTuple_New(2); if (!uwsgi.embedded_args) { PyErr_Print();