Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28408 > unrolled thread
| Started by | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| First post | 2014-05-06 23:44 -0700 |
| Last post | 2014-05-06 23:44 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.java.programmer
addShutdownHook Roedy Green <see_website@mindprod.com.invalid> - 2014-05-06 23:44 -0700
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2014-05-06 23:44 -0700 |
| Subject | addShutdownHook |
| Message-ID | <76ljm95hefvfvtk6113j2rt6uhek7q06om@4ax.com> |
I feel like such an idiot. Runtime.getRuntime().addShutdownHook was not working. The problem was I was calling the code in the Shutdown class's static init. But of course nobody ever touched that class, except the shut down hook, so the static code never got run. -- Roedy Green Canadian Mind Products http://mindprod.com Culture is your operating system. ~ Terence McKenna (born: 1946-11-16 died: 2000-04-03 at age: 53)
Back to top | Article view | comp.lang.java.programmer
csiph-web