Skip to content

Commit

Permalink
fix(cli): exit 1 on ctrl+c (#11563)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre authored Jan 26, 2023
1 parent 9c4ca07 commit fb77411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/shortcuts.ts
Original file line number Diff line number Diff line change
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 fb77411

Please sign in to comment.