Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Java - Trapping Unix Signals

Posted on 2004-08-30
1
Medium Priority
?
568 Views
Last Modified: 2008-03-17
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.
0
Comment
Question by:root_start
1 Comment
 
LVL 24

Accepted Solution

by:
sciuriware earned 150 total points
ID: 11930012
First of all: kill -9 is UNCATCHABLE.

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

;JOOP!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question