Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid System.exit #34

Closed
Zomis opened this issue Jan 18, 2015 · 2 comments
Closed

Avoid System.exit #34

Zomis opened this issue Jan 18, 2015 · 2 comments

Comments

@Zomis
Copy link

Zomis commented Jan 18, 2015

Even though this question is about Swing, it applies here too: http://stackoverflow.com/a/3281935/1310566

As I plan on incorporating this in a web-based application, using System.exit would be devastating for me. Using System.exit is a mean way of terminating applications. Throw exceptions and/or interrupt threads instead.

@Unihedro
Copy link
Owner

I agree. I wonder why it's there. It really needs a soft exit, the force termination should be done by containers.

@Vogel612
Copy link
Collaborator

I'm currently checking whether we can go through all threads with a poison pill to shut everything down orderly. I fear that might not be the case though. Let me investigate a bit more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants