Skip to content

Commit

Permalink
fix(cli): revert ctrl+C no longer kills processes (#11434) (#11518) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre authored Jan 3, 2023
1 parent 718fc1d commit 3748acb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/shortcuts.ts
Original file line number Diff line number Diff line change
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 3748acb

Please sign in to comment.