We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c4ca07 commit fb77411Copy full SHA for fb77411
packages/vite/src/node/shortcuts.ts
@@ -44,7 +44,7 @@ export function bindShortcuts(
44
const onInput = async (input: string) => {
45
// ctrl+c or ctrl+d
46
if (input === '\x03' || input === '\x04') {
47
- process.emit('SIGTERM')
+ await server.close().finally(() => process.exit(1))
48
return
49
}
50
0 commit comments