(pid: number)
| 392 | }; |
| 393 | |
| 394 | export const terminatePid = (pid: number): Effect.Effect<void, Error> => |
| 395 | Effect.try({ |
| 396 | try: () => { |
| 397 | process.kill(pid, "SIGTERM"); |
| 398 | }, |
| 399 | catch: (cause) => |
| 400 | cause instanceof Error |
| 401 | ? cause |
| 402 | : new Error(`Failed to terminate pid ${pid}: ${String(cause)}`), |
| 403 | }); |
no outgoing calls
no test coverage detected