-
Notifications
You must be signed in to change notification settings - Fork 285
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
The process refuses to quit. #539
Comments
I am having the same issue, this is my example (but having issue with much bigger codebase, this is just my minimal example).
If I use
|
A single line example
And the issue can be recreated when following Docker section of readme.md |
I did some more research. The root problem is adding This call creates and runs handler that never quits so the node process continues to run. Previous version placed callbacks directly to queue that was processed by main thread. The commit message is very useful and explains why this was done this way, but unfortunately there is no "exit" event. The only workaround that I found is scorched earth approach - call |
As a workaround, you can create a fork process and then kills it. This would prevent crashing the main process. |
It breaks the internal indefinite loop and allows Node process to quit without SIGTERM. Solves bug joeferner#539 - The process refuses to quit.
I've created a fork (and merge request) that adds stop() function to java object. That function closes handle used in loop spawned by
|
I have the same issue with version |
I'm using java:0.12.2, and running on Windows 10. After executing the following code:
The process doesn't exit. Is there a java.destroy() or something?
The text was updated successfully, but these errors were encountered: