def pgid(self): """ Process group ID, or None if it hasn't started yet. POSIX only. """ if self.pid is not None: return os.getpgid(self.pid)