threads+CNI+SIGINT

Jeff Sturm jsturm@sigma6.com
Mon Mar 27 09:17:00 GMT 2000


Tom Tromey wrote:
> Jeff> SIGINT handling is necessary on Linux to ensure that all threads
> Jeff> terminate, I believe.
> 
> What is it that we'd need to do?

I haven't tested/researched the issue yet... but I've had trouble with
other linuxthreads programs before, in which sending a signal to one PID
(thread) kills that thread, leaving the process running.  (At least the
IBM JDK behaves that way.)

That's not particularly nice behavior IMHO... the runtime should either
ignore the signal, or act on all threads (i.e. by shutting down).

A SIGINT from the keyboard (^C) will be automatically sent to all
processes which share the same controlling tty, which in that case will
probably do the right thing.

-- 
Jeff Sturm
jsturm@sigma6.com


More information about the Java mailing list