Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28408 > unrolled thread

addShutdownHook

Started byRoedy Green <see_website@mindprod.com.invalid>
First post2014-05-06 23:44 -0700
Last post2014-05-06 23:44 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.programmer


Contents

  addShutdownHook Roedy Green <see_website@mindprod.com.invalid> - 2014-05-06 23:44 -0700

#28408 — addShutdownHook

FromRoedy Green <see_website@mindprod.com.invalid>
Date2014-05-06 23:44 -0700
SubjectaddShutdownHook
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)

[toc] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web