Solved

Java - Trapping Unix Signals

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
javap bin 2 40
Oracle SQL syntax check  without executing 6 75
tomcat administrtor 12 61
difference between sorce folder and folder in eclipise 3 28
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

856 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