Merge pull request #4565 from jmchilton/backport_uwsgi_fix

[16.01] Backport uwsgi fix from #2836.
This commit is contained in:
Dannon Baker
2017-09-06 12:35:30 -04:00
committed by GitHub
+3 -1
View File
@@ -29,8 +29,10 @@ log = logging.getLogger( __name__ )
# uwsgi-managed process.
try:
import uwsgi
if uwsgi.numproc:
if hasattr(uwsgi, "numproc"):
process_is_uwsgi = True
else:
process_is_uwsgi = False
except ImportError:
# This is not a uwsgi process, or something went horribly wrong.
process_is_uwsgi = False