Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.7.0.pre2
-
Fix Version/s: JRuby 1.7.0.RC1
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:jruby 1.7.0.preview2 (1.9.3p203) 2012-08-07 4a6bb0a on Java HotSpot(TM) Client VM 1.7.0_05-b05 [Windows 7-x86]
-
Number of attachments :
Description
It seems that the Signal.list is missing "KILL" on Windows:
# MRI irb(main):001:0> Signal.list.keys => ["EXIT", "INT", "ILL", "ABRT", "FPE", "KILL", "SEGV", "TERM"] # JRuby irb(main):001:0> Signal.list.keys => ["INT", "ILL", "ABRT", "FPE", "SEGV", "TERM", "EXIT"]
Our list of signals is generated from the jnr-constants library, which basically has per-platform generated code to provide constant values.
Looking at jnr-constants, I see this in the Windows Signal constants: // SIGKILL not defined
This should be programmatically generated based on what's available at compile time, so I'm confused why KILL doesn't show up if it's actually supposed to be there.