Solved

Java - Trapping Unix Signals

Posted on 2004-08-30
1
553 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 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 79
Unexpected HttpURLConnection connection behavior 2 86
Java Timer (static) 9 36
diffSum example 4 26
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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 learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now