Java - Trapping Unix Signals

Hi All,

How do I do to trap Unix signals like: kill -9, -15 or "Ctrl + C" in my java program ?

Do I have how to do this ?

Thanks,
root.
LVL 3
root_startAsked:
Who is Participating?
 
sciuriwareConnect With a Mentor Commented:
First of all: kill -9 is UNCATCHABLE.

See:
      http://www-106.ibm.com/developerworks/ibm/library/i-signalhandling/

;JOOP!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.