mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Avoid needlessly triggering non-false return from issetugid on MacOSX
This commit is contained in:
parent
6171ac4885
commit
32992a88f9
@ -161,7 +161,7 @@ def set_owner_process(uid, gid, initgroups=False):
|
||||
|
||||
if initgroups:
|
||||
os.initgroups(username, gid)
|
||||
else:
|
||||
elif gid != os.getgid():
|
||||
os.setgid(gid)
|
||||
|
||||
if uid:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user