(pid?: number)
| 43 | this.decoder = new BufferDecoder(); |
| 44 | } |
| 45 | public static isAlive(pid?: number): boolean { |
| 46 | try { |
| 47 | if (!pid) { |
| 48 | return false; |
| 49 | } |
| 50 | process.kill(pid, 0); |
| 51 | return true; |
| 52 | } catch { |
| 53 | return false; |
| 54 | } |
| 55 | } |
| 56 | public static kill(pid?: number): void { |
| 57 | try { |
| 58 | if (!pid) { |
no test coverage detected