'return the CURRENT group id of the process. this differs from
self.pgid in that this refects the current state of the process, where
self.pgid is the group id at launch'

def get_pgid(self):

    return os.getpgid(self.pid)
