Skip to content

Commit 6b99984

Browse files
committed
Make sure the clojure process inherits IO
Some use case requires to talk with the process via stdio (clojure mcp). Currently the process we start via ProcessBuild does not expose that. This patch solves that by calling `.inheritIO` (Java & and later) on it.
1 parent d0a8359 commit 6b99984

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lambdaisland/launchpad.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@
521521
(fn [ctx]
522522
(let [working-dir (io/file working-dir)
523523
proc-builder (doto (ProcessBuilder. (map str cmd))
524+
(.inheritIO)
524525
(.directory working-dir))
525526
_ (.putAll (.environment proc-builder) (or env (:env ctx)))
526527
color (mod (hash (or prefix (first cmd))) 8)

0 commit comments

Comments
 (0)