Skip to content

Commit

Permalink
fix(cli): revert ctrl+C no longer kills processes (vitejs#11434) (vit…
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre authored and futurGH committed Feb 26, 2023
1 parent 67e2bb3 commit 856f8f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/shortcuts.ts
Expand Up @@ -44,8 +44,7 @@ export function bindShortcuts(
const onInput = async (input: string) => {
// ctrl+c or ctrl+d
if (input === '\x03' || input === '\x04') {
process.stdin.setRawMode(false)
process.stdin.write(input)
process.emit('SIGTERM')
return
}

Expand Down

0 comments on commit 856f8f1

Please sign in to comment.