Skip to content

Commit 43dd2bc

Browse files
Merge branch 'release/4.6.7'
2 parents e2209cf + b900abe commit 43dd2bc

File tree

5 files changed

+22
-2
lines changed

5 files changed

+22
-2
lines changed

docs/release-notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Release Notes
55
.. toctree::
66
:maxdepth: 2
77

8+
release-notes/version-4.6.7
89
release-notes/version-4.6.6
910
release-notes/version-4.6.5
1011
release-notes/version-4.6.4

docs/release-notes/version-4.6.7.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=============
2+
Version 4.6.7
3+
=============
4+
5+
Version 4.6.7 of mod_wsgi can be obtained from:
6+
7+
https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.6.7
8+
9+
Bugs Fixed
10+
----------
11+
12+
* Fix Windows build errors due to Python 3.7+ not providing empty function
13+
stubs for ``PyOS_AfterFork_Child()`` and ``PyOS_AfterFork_Parent()``.

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,8 @@ def _version():
573573
'Programming Language :: Python :: 3.4',
574574
'Programming Language :: Python :: 3.5',
575575
'Programming Language :: Python :: 3.6',
576+
'Programming Language :: Python :: 3.7',
577+
'Programming Language :: Python :: 3.8',
576578
'Topic :: Internet :: WWW/HTTP :: WSGI',
577579
'Topic :: Internet :: WWW/HTTP :: WSGI :: Server'
578580
],

src/server/mod_wsgi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4379,13 +4379,15 @@ static void wsgi_python_child_init(apr_pool_t *p)
43794379
* do it if Python was initialised in parent process.
43804380
*/
43814381

4382+
#ifdef HAVE_FORK
43824383
if (wsgi_python_initialized && !wsgi_python_after_fork) {
43834384
#if PY_MAJOR_VERSION > 3 || (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 7)
43844385
PyOS_AfterFork_Child();
43854386
#else
43864387
PyOS_AfterFork();
43874388
#endif
43884389
}
4390+
#endif
43894391

43904392
/* Finalise any Python objects required by child process. */
43914393

@@ -10467,11 +10469,13 @@ static int wsgi_start_process(apr_pool_t *p, WSGIDaemonProcess *daemon)
1046710469
wsgi_exit_daemon_process(0);
1046810470
}
1046910471

10472+
#ifdef HAVE_FORK
1047010473
if (wsgi_python_initialized) {
1047110474
#if PY_MAJOR_VERSION > 3 || (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 7)
1047210475
PyOS_AfterFork_Parent();
1047310476
#endif
1047410477
}
10478+
#endif
1047510479

1047610480
apr_pool_note_subprocess(p, &daemon->process, APR_KILL_AFTER_TIMEOUT);
1047710481
apr_proc_other_child_register(&daemon->process, wsgi_manage_process,

src/server/wsgi_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
#define MOD_WSGI_MAJORVERSION_NUMBER 4
2727
#define MOD_WSGI_MINORVERSION_NUMBER 6
28-
#define MOD_WSGI_MICROVERSION_NUMBER 6
29-
#define MOD_WSGI_VERSION_STRING "4.6.6"
28+
#define MOD_WSGI_MICROVERSION_NUMBER 7
29+
#define MOD_WSGI_VERSION_STRING "4.6.7"
3030

3131
/* ------------------------------------------------------------------------- */
3232

0 commit comments

Comments
 (0)