From 718b443fbd1dd7370dcdb79dee341aa482574361 Mon Sep 17 00:00:00 2001 From: kinfuy Date: Thu, 29 Dec 2022 11:54:23 +0800 Subject: [PATCH] fix: Ctrl+C no longer kills processes (#11434) --- packages/vite/src/node/shortcuts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vite/src/node/shortcuts.ts b/packages/vite/src/node/shortcuts.ts index a34c96f3f6a3c5..946f5f4f103aaa 100644 --- a/packages/vite/src/node/shortcuts.ts +++ b/packages/vite/src/node/shortcuts.ts @@ -44,8 +44,8 @@ export function bindShortcuts( const onInput = async (input: string) => { // ctrl+c or ctrl+d if (input === '\x03' || input === '\x04') { - process.emit('SIGTERM') - return + // process.emit('SIGTERM') + process.exit(1) } if (actionRunning) return