History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-1537
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Ola Bini
Reporter: Charles Oliver Nutter
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JRuby

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

Created: 06/Nov/07 07:32 PM   Updated: 22/Dec/07 06:26 AM
Component/s: None
Affects Version/s: JRuby 1.1b1, JRuby 1.0.2
Fix Version/s: JRuby 1.0.3, JRuby 1.1RC2

Time Tracking:
Not Specified


 Description  « Hide
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)


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Ola Bini - 19/Nov/07 03:20 AM
Implemented and fixed.