ID EN
OS

getpgid

Python 3.11

Return the process group id of the process with process id pid. If pid is 0, the process group id of the current process is returned.

Syntax

PYTHON
os.getpgid(pid)

See Also

Availability