Skip to content

Commit 5458417

Browse files
Merge branch 'release/4.4.16'
2 parents 7199a18 + a3b39d3 commit 5458417

File tree

4 files changed

+32
-5
lines changed

4 files changed

+32
-5
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.4.16
89
release-notes/version-4.4.15
910
release-notes/version-4.4.14
1011
release-notes/version-4.4.13

docs/release-notes/version-4.4.16.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
==============
2+
Version 4.4.16
3+
==============
4+
5+
Version 4.4.16 of mod_wsgi can be obtained from:
6+
7+
https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.4.16
8+
9+
For details on the availability of Windows binaries see:
10+
11+
https://github.com/GrahamDumpleton/mod_wsgi/tree/master/win32
12+
13+
Bugs Fixed
14+
----------
15+
16+
1. If ``/dev/stderr`` cannot be opened for writing when startup log is
17+
requested and logging to the terminal, then ``mod_wsgi-express`` would
18+
fail. Now attempt fallback to using ``/dev/tty`` and if that cannot be
19+
opened either, then give up on trying to use terminal for startup log.

src/server/__init__.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,12 +2799,19 @@ def _cmd_setup_server(command, args, options):
27992799
with open('/dev/stderr', 'w'):
28002800
pass
28012801
except IOError:
2802-
options['startup_log_file'] = None
2802+
try:
2803+
with open('/dev/tty', 'w'):
2804+
pass
2805+
except IOError:
2806+
options['startup_log_file'] = None
2807+
else:
2808+
options['startup_log_file'] = '/dev/tty'
28032809
else:
28042810
options['startup_log_file'] = '/dev/stderr'
28052811

2806-
options['httpd_arguments_list'].append('-E')
2807-
options['httpd_arguments_list'].append(options['startup_log_file'])
2812+
if options['startup_log_file']:
2813+
options['httpd_arguments_list'].append('-E')
2814+
options['httpd_arguments_list'].append(options['startup_log_file'])
28082815

28092816
if options['server_name']:
28102817
host = options['server_name']

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 4
28-
#define MOD_WSGI_MICROVERSION_NUMBER 15
29-
#define MOD_WSGI_VERSION_STRING "4.4.15"
28+
#define MOD_WSGI_MICROVERSION_NUMBER 16
29+
#define MOD_WSGI_VERSION_STRING "4.4.16"
3030

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

0 commit comments

Comments
 (0)