From b9b21e9ecec0ed1a2e1429284b3ed060e5a6be82 Mon Sep 17 00:00:00 2001 From: rcmerci Date: Thu, 26 Feb 2026 20:35:12 +0800 Subject: [PATCH] fix: ignore daemon process stdio if cli spawn it --- src/main/logseq/db_worker/daemon.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/logseq/db_worker/daemon.cljs b/src/main/logseq/db_worker/daemon.cljs index ddacb1cb49..4885c2cce8 100644 --- a/src/main/logseq/db_worker/daemon.cljs +++ b/src/main/logseq/db_worker/daemon.cljs @@ -263,7 +263,9 @@ (log/warn :db-worker-daemon/missing-script {:repo repo :data-dir data-dir}) nil) (let [child (.spawn child-process (.-execPath js/process) args #js {:detached true - :stdio "inherit" + :stdio (if (= owner-source :cli) + "ignore" + "inherit") :env env})] (.unref child) child))))