From 2eb5a167b3f87442ff70d13fd4301d8dcd47b7e1 Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Fri, 20 Mar 2026 14:13:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=20taskkill=20/T=20?= =?UTF-8?q?=E7=BB=88=E6=AD=A2=E8=BF=9B=E7=A8=8B=E6=A0=91=EF=BC=8C=E7=A1=AE?= =?UTF-8?q?=E4=BF=9D=E5=AD=90=E8=BF=9B=E7=A8=8B=E4=B9=9F=E8=A2=AB=E5=85=B3?= =?UTF-8?q?=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/services/sddService.ts | 2 +- electron/services/terminalService.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/services/sddService.ts b/electron/services/sddService.ts index ab57863..5f76b28 100644 --- a/electron/services/sddService.ts +++ b/electron/services/sddService.ts @@ -170,7 +170,7 @@ class SDDService { return new Promise((resolve) => { log.info(`[SDDService] Stopping process ${this.processPid}...`); - exec(`taskkill /F /PID ${this.processPid}`, (error) => { + exec(`taskkill /F /T /PID ${this.processPid}`, (error) => { this.process = null; this.processPid = null; this._isRunning = false; diff --git a/electron/services/terminalService.ts b/electron/services/terminalService.ts index d0e6d7f..ff4b8e5 100644 --- a/electron/services/terminalService.ts +++ b/electron/services/terminalService.ts @@ -170,7 +170,7 @@ class TerminalService { return new Promise((resolve) => { log.info(`[TerminalService] Stopping process ${this.processPid}...`); - exec(`taskkill /F /PID ${this.processPid}`, (error) => { + exec(`taskkill /F /T /PID ${this.processPid}`, (error) => { this.process = null; this.processPid = null; this._isRunning = false;