mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: ignore daemon process stdio if cli spawn it
This commit is contained in:
@@ -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))))
|
||||
|
||||
Reference in New Issue
Block a user