(pid)
| 125 | } |
| 126 | |
| 127 | function isPidRunning(pid) { |
| 128 | if (_processTableForTest) { |
| 129 | var spRun = parseInt(pid, 10); |
| 130 | return _processTableForTest.some(function (p) { return p.pid === spRun; }); |
| 131 | } |
| 132 | try { process.kill(pid, 0); return true; } catch (e) { return false; } |
| 133 | } |
| 134 | |
| 135 | function boolEnv(value) { |
| 136 | var raw = String(value || '').trim().toLowerCase(); |
no outgoing calls
no test coverage detected