Yes, you can register a shutdown hook; unfortunately someone else
brought to my attention that all you can do is fire off shutdown code
in response...you can't stop the JVM shutdown process in any way. On a
POSIX platform, trapping SIGINT would allow you to ignore C-c, which
we have no way to do.

On 2/25/06, David Corbin <[EMAIL PROTECTED]> wrote:
> You can install a hook in java that catches CTRL-C (isn't that what SIGINT
> is?).  The exact bits of how to do it escape me, but it's in java.lang,
> possibly System.
>


--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to