diff options
author | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2022-05-02 11:52:15 +1000 |
---|---|---|
committer | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2022-05-02 11:52:15 +1000 |
commit | 0497f0c29e8dd06608378e6fc814a6037e8c6906 (patch) | |
tree | b1ecfbe7b8ba7ea13bef90abb7b56ba6cf4429e7 /src/server/wsgi_interp.c | |
parent | 6eeec45ef8cec1768e5e79368bd04198150cf1f4 (diff) | |
parent | 520d94aa701a52bd98efe697ff04a43ad0975739 (diff) | |
download | mod_wsgi-0497f0c29e8dd06608378e6fc814a6037e8c6906.tar.gz |
Merge branch 'release/4.9.1'4.9.1
Diffstat (limited to 'src/server/wsgi_interp.c')
-rw-r--r-- | src/server/wsgi_interp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/wsgi_interp.c b/src/server/wsgi_interp.c index 027325f..5209040 100644 --- a/src/server/wsgi_interp.c +++ b/src/server/wsgi_interp.c @@ -1,7 +1,7 @@ /* ------------------------------------------------------------------------- */ /* - * Copyright 2007-2021 GRAHAM DUMPLETON + * Copyright 2007-2022 GRAHAM DUMPLETON * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -2069,6 +2069,11 @@ apr_status_t wsgi_python_term(void) { PyObject *module = NULL; + /* Skip destruction of Python interpreter. */ + + if (wsgi_server_config->destroy_interpreter == 0) + return APR_SUCCESS; + ap_log_error(APLOG_MARK, APLOG_INFO, 0, wsgi_server, "mod_wsgi (pid=%d): Terminating Python.", getpid()); |