Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: 桌面端内核进程不再以游离模式拉起 https://github.com/siyuan-note/siyuan/issues/6336

Liang Ding072132083dcc
diff --git a/app/electron/main.js b/app/electron/main.js
index a9860ca6f7..60d19818d9 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) => {