(signal: string)
| 181 | } while (!stopping); |
| 182 | |
| 183 | function stop(signal: string) { |
| 184 | if (stopping) { |
| 185 | return; |
| 186 | } |
| 187 | stopping = true; |
| 188 | writeLogLine(stderrLog, 'stderr', `[codex-native-api-daemon] stopping on ${signal}`); |
| 189 | if (child && !child.killed) { |
| 190 | child.kill(signal as NodeJS.Signals); |
| 191 | } |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | export async function buildDaemonInstallPlan( |
no test coverage detected