summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham.Dumpleton <devnull@localhost>2009-03-20 11:10:27 +0000
committerGraham.Dumpleton <devnull@localhost>2009-03-20 11:10:27 +0000
commitc8e3afa1ce0316951538a788245937fe561e1dca (patch)
tree499c922310e117065131f4b8814b58257e77e084
parent4626308efd58e48147246db44374e8bfe218e39c (diff)
downloadmod_wsgi-c8e3afa1ce0316951538a788245937fe561e1dca.tar.gz
Backport making process group and application group information available
at global scope via the 'mod_wsgi' internal module. See issue #27.
-rw-r--r--mod_wsgi.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod_wsgi.c b/mod_wsgi.c
index 64bd523..de2db3c 100644
--- a/mod_wsgi.c
+++ b/mod_wsgi.c
@@ -4065,6 +4065,16 @@ static InterpreterObject *newInterpreterObject(const char *name,
MOD_WSGI_MAJORVERSION_NUMBER,
MOD_WSGI_MINORVERSION_NUMBER));
+ /*
+ * Add information about process group and application
+ * group to the Python 'mod_wsgi' module.
+ */
+
+ PyModule_AddObject(module, "process_group",
+ PyString_FromString(wsgi_daemon_group));
+ PyModule_AddObject(module, "application_group",
+ PyString_FromString(name));
+
Py_DECREF(module);
/*