After some discussion with my co-workers we're leaning towards simply emulating MRI's handling of SIGTERM, SIGHUP and SIGINT with custom signal handlers that raise the appropriate SignalException.
This approach results in the ensure being executed under JRuby as it is in MRI and also doesn't appear to interfere with any Java shutdown hooks, implying the JVM probably continues to shutdown normally. Here's a gist with the approach we're planning to use: http://gist.github.com/320008 I'd imagine JRuby should do something similar eventually unless there's something about what we've done that makes it a really idea. If there is then I hope somebody reading this will point it out. Thanks for your help Charles and Kristian! --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email