method

getpgid

ruby latest stable - Class: Process
getpgid(p1)
public

Returns the process group ID for the given process id. Not available on all platforms.

Process.getpgid(Process.ppid())   #=> 25527