(stream: ProcessOutputStream, output: Buffer)
| 227 | ...(stderrTruncated || boundedStderr.truncated ? { stderrTruncated: true } : {}), |
| 228 | }); |
| 229 | }; |
| 230 | |
| 231 | const killProcess = (signal: NodeJS.Signals): void => { |
| 232 | if (proc.pid === undefined) return; |
| 233 | try { |
| 234 | process.kill(-proc.pid, signal); |
| 235 | return; |
| 236 | } catch { |
| 237 | proc.kill(signal); |
| 238 | } |
| 239 | }; |
| 240 | |
| 241 | const processGroupExists = (): boolean => { |
| 242 | if (proc.pid === undefined) return false; |
| 243 | try { |
| 244 | process.kill(-proc.pid, 0); |
| 245 | return true; |
| 246 | } catch { |
| 247 | return false; |
| 248 | } |
| 249 | }; |
no test coverage detected