fix: ignore daemon process stdio if cli spawn it

This commit is contained in:
rcmerci
2026-02-26 20:35:12 +08:00
parent a4b8f2aeff
commit b9b21e9ece

View File

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