(reason: unknown)
| 495 | }); |
| 496 | |
| 497 | const handleCrash = (reason: unknown): void => { |
| 498 | recordDaemonLifecycleMetric('crash'); |
| 499 | const message = reason instanceof Error ? reason.message : String(reason); |
| 500 | log('error', `[Daemon] Crash: ${message}`, { sentry: true }); |
| 501 | shutdown(1); |
| 502 | }; |
| 503 | |
| 504 | process.on('exit', () => { |
| 505 | terminateOwnedWorkspaceFilesystemArtifactsSync(); |
nothing calls this directly
no test coverage detected