Copterfly / modwsgi

Automatically exported from code.google.com/p/modwsgi
0 stars 0 forks source link

Need to ignore SystemExit exception generated by Python code. #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At present, if Python code executed as part of initial script import, or by
WSGI application itself calls sys.exit() or explicitly raises a SystemExit
exception, then it will cause the Apache process to exit. This is because
error messages for Python exceptions are currently generated by calling
PyErr_Print() which has a side effect of exiting the program if SystemExit
exception is detected.

At the minimum, must capture when SystemExit exception has been raised, log
an Apache warning message indicating it has been ignored and otherwise
continue processing requests.

Original issue reported on code.google.com by Graham.Dumpleton@gmail.com on 11 Mar 2007 at 7:28

GoogleCodeExporter commented 9 years ago

Original comment by Graham.Dumpleton@gmail.com on 14 Mar 2007 at 4:37