Return identifier (PID) of process or `None` if it has yet to start
(self)
| 240 | |
| 241 | @property |
| 242 | def ident(self): |
| 243 | ''' |
| 244 | Return identifier (PID) of process or `None` if it has yet to start |
| 245 | ''' |
| 246 | self._check_closed() |
| 247 | if self is _current_process: |
| 248 | return os.getpid() |
| 249 | else: |
| 250 | return self._popen and self._popen.pid |
| 251 | |
| 252 | pid = ident |
| 253 |
nothing calls this directly
no test coverage detected