def sid(self): """ Session ID, or None if it hasn't started yet. POSIX only. """ return os.getsid(self.pid)