Le 29/04/2012 00:23, H. S. Teoh a écrit :
On Sun, Apr 29, 2012 at 12:16:15AM +0200, deadalnix wrote:
Le 28/04/2012 22:04, Andrea Fontana a écrit :
How can i catch kill signal to gracefully shutdown my app?
This can be used for other signals :
http://www.deadalnix.me/2012/03/24/get-an-exception-from-a-segfault-on-linux-x86-and-x86_64-using-some-black-magic/
But still, you can't catch kill and it is linux specific.
AFAIK, SIGKILL cannot be caught on any posix system.
T
You misunderstood me (the sentence was not clear). I mean, you cannot
catch kill and the trick mentioned int he link is linux specific.
Obviously, the fact that you cannot catch kill isn't linux specific ;)