Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.x+
-
Fix Version/s: JRuby 1.0.3, JRuby 1.1RC2
-
Component/s: JRuby-extras
-
Labels:None
-
Environment:JRuby trunk, rev 4178
JVM 1.6.0-b105
Ubuntu 7.0 desktop
mongrel-1.0.1-jruby.gem
Rails 1.2.3
skeleton Rails app produced by 'rails foo'
-
Number of attachments :
Description
run jruby script/server webrick - everything starts and works fine and dandy
run jruby script/server mongrel - exception is thrown when Mongrel tries to set up a signal handler for USR1
relevant bits of the stack trace:
Signal.java:149:in `sun.misc.Signal.handle': java.lang.IllegalArgumentException: Signal already used by VM: SIGUSR1 (NativeException)
...
from Main.java:96:in `org.jruby.Main.main'
from /home/alexeyv/src/jruby/jruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-jruby/lib/mongrel/configurator.rb:362:in `setup_signals'
...
JVM handles USR1 itself. I tried passing java a -XX:+UseAltSigs option, but it didn't help.
Issue Links
| This issue is duplicated by: | ||||
| JRUBY-1581 | Signal#trap doesn't handle failure of trapping gracefully. |
|
|
|
I'm not seeing this. JRuby trunk and several revisions back. Same Rails and mongrel. I'm on MacOS X. Works with both Java 1.5 and 1.6.