added --disable-write-exception

This commit is contained in:
roberto@precise64
2012-05-05 09:30:43 +02:00
parent 95bda63c40
commit b15a0a2d4b
5 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -38,7 +38,7 @@
#define PyVarObject_HEAD_INIT(x, y) PyObject_HEAD_INIT(x) y,
#endif
#define uwsgi_py_write_set_exception(x) PyErr_SetString(PyExc_IOError, "write error");
#define uwsgi_py_write_set_exception(x) if (!uwsgi.disable_write_exception) { PyErr_SetString(PyExc_IOError, "write error"); };
#define uwsgi_py_write_exception(x) uwsgi_py_write_set_exception(x); PyErr_Print();