Sun JVM-specific signal handler should be used only when available ------------------------------------------------------------------
Key: JRUBY-1537 URL: http://jira.codehaus.org/browse/JRUBY-1537 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.1b1, JRuby 1.0.2 Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo Fix For: JRuby 1.0.3, JRuby 1.1 See patch below: {noformat} Index: src/builtin/jsignal.rb =================================================================== --- src/builtin/jsignal.rb (revision 4868) +++ src/builtin/jsignal.rb (working copy) @@ -7,6 +7,9 @@ 26 => "SIGVTALRM", 27 => "SIGPROF", 30 => "SIGUSR1", 31 => "SIGUSR2" } begin + # attempt to load the Signal handler from Sun JVM, falling back to a dummy impl below + Java::sun.misc.Signal + def __jtrap(*args, &block) sig = args.first sig = SIGNALS[sig] if sig.kind_of?(Fixnum) {noformat} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email