diff options
author | Graham.Dumpleton <devnull@localhost> | 2009-03-20 11:10:27 +0000 |
---|---|---|
committer | Graham.Dumpleton <devnull@localhost> | 2009-03-20 11:10:27 +0000 |
commit | c8e3afa1ce0316951538a788245937fe561e1dca (patch) | |
tree | 499c922310e117065131f4b8814b58257e77e084 | |
parent | 4626308efd58e48147246db44374e8bfe218e39c (diff) | |
download | mod_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.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); /* |