Skip to content

Commit

Permalink
fix: handle child proc exception on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
armed committed Aug 13, 2024
1 parent abb7cd5 commit abcfd73
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/k16/kmono/repl/deps.clj
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@
(.addShutdownHook
(Thread.
(fn []
(bp/destroy proc)
(bp/check proc)))))
(try
(bp/destroy proc)
(bp/check proc)
(catch Throwable _ nil))))))
(bp/check proc)))))

0 comments on commit abcfd73

Please sign in to comment.