mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #1672 from andywilco/avoid_issetugid
Avoid needlessly triggering true return from issetugid on MacOSX
This commit is contained in:
commit
5c92093219
@ -161,7 +161,7 @@ def set_owner_process(uid, gid, initgroups=False):
|
|||||||
|
|
||||||
if initgroups:
|
if initgroups:
|
||||||
os.initgroups(username, gid)
|
os.initgroups(username, gid)
|
||||||
else:
|
elif gid != os.getgid():
|
||||||
os.setgid(gid)
|
os.setgid(gid)
|
||||||
|
|
||||||
if uid:
|
if uid:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user