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))))