(storageDir: string, directory: string)
| 37 | |
| 38 | /** Legacy single-port file used by v0.18.0 and earlier. */ |
| 39 | export function legacyRpcPortFilePath(storageDir: string, directory: string): string { |
| 40 | return join(rpcPortDir(storageDir, directory), "port"); |
| 41 | } |
| 42 | |
| 43 | export function isPidAlive(pid: number): boolean { |
| 44 | if (!Number.isInteger(pid) || pid <= 0) return false; |
no test coverage detected