signal SIGINT in JAVA?

Hi,

I must manage SIGINT signal from a Java program. I'm using Jdk 1.6 and I'm searching in API but I dont find nothing about it.

I have two question about it:

1. How can I manage an user cntrl-C key-pressed in my program? (in Windows and in Linux).

2. And, how I send a SIGINT signal to another application that I called before using Runtime.getRuntime().exec("process")? (in Linux)

I dont want to kill it, I only want to send SIGINT because these application have a SIGINT handler (it are C applications in Linux).

How can I do both things using Java?

Thanks in advance.

[624 byte] By [JAX82a] at [2007-11-27 11:39:38]
# 1

> I must manage SIGINT signal from a Java program

You can't, unless you're prepared to write some JNI code and wear the loss of platform-neutrality.

ejpa at 2007-7-29 17:27:20 > top of Java-index,Java Essentials,Java Programming...