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


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

addShutdownHook

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail
From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject addShutdownHook
Date Tue, 06 May 2014 23:44:13 -0700
Organization Canadian Mind Products
Lines 10
Message-ID <76ljm95hefvfvtk6113j2rt6uhek7q06om@4ax.com> (permalink)
Reply-To Roedy Green <see_website@mindprod.com.invalid>
NNTP-Posting-Host K2Qzzs3EAqXk5RLzfhxcSw.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent ForteAgent/7.20.32.1218
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.java.programmer:28408

Show key headers only | View raw


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 comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web