diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-12-20 15:47:10 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-12-20 15:47:10 +0300 |
commit | 27394118b32ab395be50de15ecf514d5529090c5 (patch) | |
tree | 90952281b51df8384d2c69743f48665717cb5af1 /docs/changes.xml | |
parent | 1ce7e860b2913bc5c89258dca6c8fa9cf86ade35 (diff) | |
download | unit-27394118b32ab395be50de15ecf514d5529090c5.tar.gz unit-27394118b32ab395be50de15ecf514d5529090c5.tar.bz2 |
Python: fixed error reporting on initialization of applications.
PyErr_Print() writes traceback to "sys.stderr", which is a file object that
can buffer the output. If the process exits immediately, the buffer can be
destroyed before flushing to the log. As a result, the user doesn't see
the traceback.
Now Py_Finalize() is also called in case of any errors during initialization.
It finalizes the interpreter and flushes all data.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions