MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / stop

Function stop

packages/codex-native-api/src/daemon_manager.ts:183–192  ·  view source on GitHub ↗
(signal: string)

Source from the content-addressed store, hash-verified

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
195export async function buildDaemonInstallPlan(

Callers 1

runDaemonSupervisorFunction · 0.70

Calls 1

writeLogLineFunction · 0.85

Tested by

no test coverage detected