From 072132083dcc2c371185bda5449ad16175fc4b3e Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 24 Oct 2022 21:25:45 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20=E6=A1=8C=E9=9D=A2=E7=AB=AF?= =?UTF-8?q?=E5=86=85=E6=A0=B8=E8=BF=9B=E7=A8=8B=E4=B8=8D=E5=86=8D=E4=BB=A5?= =?UTF-8?q?=E6=B8=B8=E7=A6=BB=E6=A8=A1=E5=BC=8F=E6=8B=89=E8=B5=B7=20https:?= =?UTF-8?q?//github.com/siyuan-note/siyuan/issues/6336?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/electron/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/electron/main.js b/app/electron/main.js index a9860ca6f..60d19818d 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -547,7 +547,7 @@ const initKernel = (initData) => { const cp = require('child_process') const kernelProcess = cp.spawn(kernelPath, cmds, { - detached: true, + detached: false, // 桌面端内核进程不再以游离模式拉起 https://github.com/siyuan-note/siyuan/issues/6336 stdio: 'ignore', }, ) @@ -593,7 +593,6 @@ const initKernel = (initData) => { } }) - kernelProcess.unref() writeLog('booted kernel process') const sleep = (ms) => {