std.ps.getpgid

std.ps

getpgid(pid) -> pgid

Get the process group ID of a process

Returns the process group ID of the process specified by pid. If pid is 0, returns the PGID of the calling process.