ID EN
OS

setpgid

Python 3.11

Call the system call setpgid() to set the process group id of the process with id pid to the process group with id pgrp. See the Unix manual for the semantics.

Syntax

PYTHON
os.setpgid(pid, pgrp, /)

See Also

Availability