>
> System.exit is of course a way to make sure you get a fast exit. The
> problem is that if something is to be cleaned up in the background it will
> simply be cut off.
>
> So the cleaner way is to not use System.exit and make sure our background
> threads terminate fast. This can be a bit tricky though :-)
>

Totally agree, the question is do we care if the threads are cleaned up
properlly when using bin/shell. From what I understand the purpose is to
execute commands outside OSGi, so that they can be used in scripts etc. In
such case exiting fast seems really important.

-- 
*Ioannis Canellos*
*
FuseSource <http://fusesource.com>

**
Blog: http://iocanel.blogspot.com
**
Twitter: iocanel
*

Reply via email to