(pid)
| 212 | system = ProcessHandler().system |
| 213 | |
| 214 | def check_pid(pid): |
| 215 | try: |
| 216 | os.kill(pid, 0) |
| 217 | except OSError as err: |
| 218 | if err.errno == errno.ESRCH: |
| 219 | return False |
| 220 | elif err.errno == errno.EPERM: |
| 221 | # Don't have permission to signal the process - probably means it exists |
| 222 | return True |
| 223 | raise |
| 224 | else: |
| 225 | return True |
nothing calls this directly
no outgoing calls
no test coverage detected