MCPcopy
hub / github.com/celery/celery / setgid

Function setgid

celery/platforms.py:518–520  ·  view source on GitHub ↗

Version of :func:`os.setgid` supporting group names.

(gid)

Source from the content-addressed store, hash-verified

516
517
518def setgid(gid):
519 """Version of :func:`os.setgid` supporting group names."""
520 os.setgid(parse_gid(gid))
521
522
523def setuid(uid):

Callers 3

test_setgidMethod · 0.90
maybe_drop_privilegesFunction · 0.85
_setuidFunction · 0.85

Calls 1

parse_gidFunction · 0.85

Tested by 1

test_setgidMethod · 0.72