(pid: number)
| 51 | import { isInternalBuild } from 'src/capabilities/static.js' |
| 52 | |
| 53 | function isProcessRunning(pid: number): boolean { |
| 54 | try { |
| 55 | process.kill(pid, 0) |
| 56 | return true |
| 57 | } catch { |
| 58 | return false |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | // Returns a function that lazily fetches our process's ancestor PID chain, |
| 63 | // caching within the closure's lifetime. Callers should scope this to a |
no test coverage detected