Solved

Java - Trapping Unix Signals

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

707 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

13 Experts available now in Live!

Get 1:1 Help Now