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
Original issue reported on code.google.com by
Graham.Dumpleton@gmail.com
on 11 Mar 2007 at 7:28