MCPcopy
hub / github.com/claude-code-best/claude-code / shutdownAndExit

Function shutdownAndExit

src/utils/computerUse/mcpServer.ts:94–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93 let exiting = false
94 const shutdownAndExit = async (): Promise<void> => {
95 if (exiting) return
96 exiting = true
97 await Promise.all([shutdown1PEventLogging(), shutdownDatadog()])
98 // eslint-disable-next-line custom-rules/no-process-exit
99 process.exit(0)
100 }
101 process.stdin.on('end', () => void shutdownAndExit())
102 process.stdin.on('error', () => void shutdownAndExit())
103

Callers 1

runComputerUseMcpServerFunction · 0.70

Calls 2

shutdown1PEventLoggingFunction · 0.85
shutdownDatadogFunction · 0.85

Tested by

no test coverage detected