diff --git a/src/k16/kmono/repl/deps.clj b/src/k16/kmono/repl/deps.clj index 78431f1..3a2ecf5 100644 --- a/src/k16/kmono/repl/deps.clj +++ b/src/k16/kmono/repl/deps.clj @@ -266,5 +266,8 @@ (ansi/print-info "Running clojure...") (when verbose? (print-clojure-cmd sdeps-overrides main-opts)) - (bp/shell clojure-cmd)))) + (let [proc (bp/shell {:continue true} clojure-cmd)] + (doto (Runtime/getRuntime) + (.addShutdownHook (Thread. (fn [] (bp/destroy proc))))) + (bp/check proc)))))