From f6ca42a4b0e343d85b6111e935ffeeef59af2b70 Mon Sep 17 00:00:00 2001 From: "roberto@precise64" Date: Mon, 28 May 2012 13:51:05 +0200 Subject: [PATCH] fixed locking reporting on older systems --- uwsgiconfig.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uwsgiconfig.py b/uwsgiconfig.py index 8286ca89..8accb880 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -507,7 +507,10 @@ class uConf(object): elif locking_mode == 'osx_spinlock': self.cflags.append('-DUWSGI_LOCK_USE_OSX_SPINLOCK') - report['locking'] = locking_mode + if locking_mode == 'auto': + report['locking'] = 'sysv semaphores' + else: + report['locking'] = locking_mode # set event subsystem event_mode = self.get('event','auto')