> I am using lein run -m to execute a simple database preparation task.
> I issue 2 very simple commands that execute very fast on their on own
> when executed in the shell. They also appear to execute very fast
> based on the print output to stdout. However, the problem is that
> after executing the 2 clojure.java.shell sh commands the process hangs
> on way after it completes. So much so that it feels wrong.
>
> Here is the gist. https://gist.github.com/1635837
The agent thread pool is probably keeping the process open. Try calling
(shutdown-agents) when you're done.
This is a long-standing known bug/shortcoming in Clojure:
http://dev.clojure.org/jira/browse/CLJ-124
-Phil