On Dec 17, 2008, at 2:31 PM, Chouser wrote:


On Wed, Dec 17, 2008 at 2:10 PM, Randall R Schulz <rsch...@sonic.net> wrote:

Since Chouser asked on #clojure which REPL (I was using the Contrib
REPL), I tried this with the stock REPL and the hang does not occur.

Specifically, this line causes the JVM to shut down, even if there are
agent threads in their pools:

http://code.google.com/p/clojure/source/browse/trunk/src/jvm/clojure/lang/Repl.java?r=1160#119

I don't see a similar line in clojure.main or the recent unification
patch.

Right. I've confirmed that it works if we put (System/exit 0) in the finally clause of clojure.main/-main.

I'll get that in an updated patch.

Should we consider all exits from clojure.main/-main to be "normal", i.e., is the 0 code there appropriate? We could set it to 1 for exceptions caught by clojure.main/-main itself. A developer always has the option to call (System/exit x) manually if desired. Thoughts?

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to