Update the jruby warning
git-svn-id: file:///home/svn/framework3/trunk@9260 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
22213466d2
commit
0db9cd2746
|
@ -39,11 +39,13 @@ if(RUBY_PLATFORM == 'java')
|
||||||
require 'socket'
|
require 'socket'
|
||||||
s = Socket.new(::Socket::AF_INET, ::Socket::SOCK_STREAM, ::Socket::IPPROTO_TCP)
|
s = Socket.new(::Socket::AF_INET, ::Socket::SOCK_STREAM, ::Socket::IPPROTO_TCP)
|
||||||
if(not s.respond_to?('bind'))
|
if(not s.respond_to?('bind'))
|
||||||
$stderr.puts "*** JRuby will not be supported until the Socket API is complete"
|
$stderr.puts "*** JRuby 1.5.0+ is required to use Metasploit with jRuby"
|
||||||
$stderr.puts "*** Information: http://jira.codehaus.org/browse/JRUBY-2739"
|
exit(0)
|
||||||
trap Signal::list['INT'] do
|
end
|
||||||
Thread.main.raise Interrupt.new
|
|
||||||
end
|
$stderr.puts "*** Warning: JRuby support is still incomplete, few things will work properly!"
|
||||||
|
trap Signal::list['INT'] do
|
||||||
|
Thread.main.raise Interrupt.new
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue