Skip to content

Commit 3748acb

Browse files
authored
fix(cli): revert ctrl+C no longer kills processes (#11434) (#11518) (#11562)
1 parent 718fc1d commit 3748acb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/vite/src/node/shortcuts.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ export function bindShortcuts(
4444
const onInput = async (input: string) => {
4545
// ctrl+c or ctrl+d
4646
if (input === '\x03' || input === '\x04') {
47-
process.stdin.setRawMode(false)
48-
process.stdin.write(input)
47+
process.emit('SIGTERM')
4948
return
5049
}
5150

0 commit comments

Comments
 (0)