Compare commits

...

2 Commits

Author SHA1 Message Date
Dax Raad
9f1f62594d fix(core): move SIGHUP handler into exit context for proper cleanup 2026-03-21 12:17:22 -04:00
Dax Raad
e1f06de263 fix(core): restore SIGHUP exit handler (#16057)
This restores the SIGHUP handler that was previously reverted. The handler ensures the process exits on terminal hangup (eg. closing the terminal tab), preventing long-running commands like `serve` from becoming orphaned processes.
2026-03-21 09:54:29 -04:00

View File

@@ -53,6 +53,7 @@ export const { use: useExit, provider: ExitProvider } = createSimpleContext({
message: store,
},
)
process.on("SIGHUP", () => exit())
return exit
},
})