JRuby

Sun JVM-specific signal handler should be used only when available

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.0.2, JRuby 1.1b1
  • Fix Version/s: JRuby 1.0.3, JRuby 1.1RC2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

See patch below:

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)

Activity

Hide
Ola Bini added a comment -

Implemented and fixed.

Show
Ola Bini added a comment - Implemented and fixed.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: