Function Reference
— Built-in Function: pgid = getpgrp ()

Return the process group id of the current process.