shutdown-hook Questions
2
I'm working on a Java application that utilises shutdown hooks in order to clean up on termination/interruption of the program, but I've noticed that Cygwin's implementation of CTRL-C doesn't seem ...
Limemann asked 1/8, 2012 at 10:49
4
Solved
How can I test if exit is clean in a shutdown function in PHP?
By clean exit I mean that the script was not terminated due to an error.
Chuu asked 30/8, 2011 at 10:3
1
Solved
I have a rather complicated shutdown in Java - there's a lot of clean up work to do. In particular I'm trying to figure out how to error handle from a shutdown hook thread. My code includes this cu...
Danidania asked 23/10, 2013 at 21:11
1
Solved
There's a bit of a clash for whether shutdown hooks, which are of class Thread, run their runnable code on the thread on which the shutdown was called, or run on themselves.
addShutdownHook takes ...
Zilber asked 23/10, 2013 at 19:16
2
Solved
I have a specialized logger class which uses the java.util.logging.Logger class. I want to be able to use this logger in the shutdown hook of another class. However, it doesn't seem to log at shutd...
Pistoleer asked 11/12, 2012 at 17:30
4
Solved
I'm using a licensed API which has a method to acquire/release a license object from a license server that has a finite number of licenses. At the beginning of my application, I call the method to ...
Shiftless asked 6/12, 2012 at 23:6
3
I am trying to get a shutdown hook to work on my ubuntu server, however I seem to have an issue with more than one thread. Using the a basic ShutdownHook, the following bit of code does work when I...
Volume asked 31/10, 2012 at 13:15
2
Solved
When I press ctrl-c in console in what sequence are application threads stopped and shutdown hooks called?
Amadavat asked 11/7, 2012 at 14:59
1
Solved
I have java application which shutdowns correctly when i use CTRL-C, java application saves all data before shutdown. Now i trying to shutdown this java application from my C# console application u...
Warlock asked 3/7, 2012 at 12:5
1
Solved
I have the following code:
(ns test-hook.core)
(defn -main []
(.addShutdownHook (Runtime/getRuntime) (Thread. #(println "shutdown")))
(println "start")
(doseq [i (range 1 6)]
(Thread/sleep 10...
Barny asked 1/6, 2012 at 18:31
2
Solved
Follow up from previous question
If you've read the previous question an alternative title may be:
How often should my daemon check to see if it's been interrupted?
Edging asked 29/12, 2011 at 2:31
2
Solved
When extending AbstractProcessor, there is a possibility to override init(...), but there is no "opposite" method, which would be called after all rounds were processed.
This is a problem: when yo...
Arborization asked 10/11, 2010 at 12:1
7
Solved
I have a critical process running in java (1.6), with a registered shutdown hook. In some instance where I get a OOM issue (more details below about the issue), the process stops suddenly, I don't ...
Eastlake asked 10/11, 2010 at 15:22
1
Solved
Is it possible to invoke a function when a cron process is killed from the command line (via Ctrl+c) or with the kill command?
I have tried register_shutdown_function(), but it doesn't seem to be ...
Firstly asked 11/10, 2010 at 20:42
1
Solved
I'm trying to make sure my Java application takes reasonable steps to be robust, and part of that involves shutting down gracefully. I am reading about shutdown hooks and I don't actually get how t...
Fitzger asked 27/5, 2010 at 14:20
© 2022 - 2024 — McMap. All rights reserved.