mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-08 05:31:29 +08:00
fix util.set_owner_process
Python 2.x is not supported anymore, let's remove this extra feature. fix #3212
This commit is contained in:
parent
5aeb0652e1
commit
7268a61099
@ -147,10 +147,6 @@ def set_owner_process(uid, gid, initgroups=False):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
initgroups = False
|
initgroups = False
|
||||||
|
|
||||||
# versions of python < 2.6.2 don't manage unsigned int for
|
|
||||||
# groups like on osx or fedora
|
|
||||||
gid = abs(gid) & 0x7FFFFFFF
|
|
||||||
|
|
||||||
if initgroups:
|
if initgroups:
|
||||||
os.initgroups(username, gid)
|
os.initgroups(username, gid)
|
||||||
elif gid != os.getgid():
|
elif gid != os.getgid():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user