added uwsgi.ready()

This commit is contained in:
roberto@precise64
2012-04-24 21:50:00 +02:00
parent 672c49e8eb
commit 74a9b1b41d
5 changed files with 26 additions and 2 deletions
+4
View File
@@ -189,6 +189,10 @@ int uwsgi_python_init() {
Py_Initialize();
if (!uwsgi.has_threads) {
uwsgi_log("*** Python threads support is disabled. You can enable it with --enable-threads ***\n");
}
up.wsgi_spitout = PyCFunction_New(uwsgi_spit_method, NULL);
up.wsgi_writeout = PyCFunction_New(uwsgi_write_method, NULL);