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

Stopping all child threads/process with addShutdownHook #383

Open
GoogleCodeExporter opened this issue May 4, 2015 · 0 comments
Open

Stopping all child threads/process with addShutdownHook #383

GoogleCodeExporter opened this issue May 4, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

During abnormal termination (e.g., csight process killed) we need to cleanup by 
stopping any running child processes (e.g., mcscm/spin). This needs to be done 
using the addShutdownHook:
http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#addShutdownHook%
28java.lang.Thread%29
http://stackoverflow.com/questions/6232499/stop-external-program-when-java-progr
am-is-stopped

This is mostly relevant to csight, but can also be important in 
synoptic/perfume/invarimint, all of which use an external graphviz child 
process to generate models (which may take a long time).

Original issue reported on code.google.com by bestchai on 13 Aug 2014 at 2:12

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

1 participant