Skip to content

Commit

Permalink
Merge pull request #35 from kepler16/fix/await-repl-shutdown
Browse files Browse the repository at this point in the history
fix: await repl shutdown
  • Loading branch information
armed authored Jul 10, 2024
2 parents 582978f + 3d40606 commit 194cfb4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,7 @@ jobs:
mv checksums.txt bin/checksums.txt
- name: GH Release
run: gh release create ${{ needs.build.outputs.release_tag }} bin/*
run: |
gh release create ${{ needs.build.outputs.release_tag }} bin/* \
--title "Release ${{ needs.build.outputs.release_tag }}"
8 changes: 6 additions & 2 deletions src/k16/kmono/repl/deps.clj
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,12 @@
(ansi/print-info "Running clojure...")
(when verbose?
(print-clojure-cmd sdeps-overrides main-opts))
(let [proc (bp/shell {:continue true} clojure-cmd)]
(let [proc (bp/process {:inherit true} clojure-cmd)]
(doto (Runtime/getRuntime)
(.addShutdownHook (Thread. (fn [] (bp/destroy proc)))))
(.addShutdownHook
(Thread.
(fn []
(bp/destroy proc)
(bp/check proc)))))
(bp/check proc)))))

0 comments on commit 194cfb4

Please sign in to comment.