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

Function shutdownAndExit

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

Source from the content-addressed store, hash-verified

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

Callers 1

runComputerUseMcpServerFunction · 0.70

Calls 2

shutdown1PEventLoggingFunction · 0.85
shutdownDatadogFunction · 0.85

Tested by

no test coverage detected