Skip to content

Commit

Permalink
fix(cli): exit 1 on ctrl+c (vitejs#11563)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre authored and futurGH committed Feb 26, 2023
1 parent a4abd29 commit 50d9362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/shortcuts.ts
Expand Up @@ -44,7 +44,7 @@ export function bindShortcuts(
const onInput = async (input: string) => {
// ctrl+c or ctrl+d
if (input === '\x03' || input === '\x04') {
process.emit('SIGTERM')
await server.close().finally(() => process.exit(1))
return
}

Expand Down

0 comments on commit 50d9362

Please sign in to comment.