(pid: number)
| 166 | }); |
| 167 | |
| 168 | const signalPid = (pid: number): Effect.Effect<void, Error> => |
| 169 | Effect.try({ |
| 170 | try: () => { |
| 171 | process.kill(pid, "SIGTERM"); |
| 172 | }, |
| 173 | catch: (cause) => |
| 174 | cause instanceof Error |
| 175 | ? cause |
| 176 | : new Error(`Failed to terminate daemon process ${pid}: ${String(cause)}`), |
| 177 | }); |
| 178 | |
| 179 | export const terminateSpawnedDetachedProcess = ( |
| 180 | child: SpawnedDetachedProcess, |
no outgoing calls
no test coverage detected