public
Last active

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
require 'socket'
 
# Ruby 1.8
Process.getrlimit(Process::RLIMIT_CORE)
Process.getrlimit(Process::RLIMIT_NOFILE)
 
# Ruby 1.9
Process.getrlimit(:CORE)
Process.getrlimit(:NOFILE)
 
# Ruby 1.8
Socket.new(Socket::AF_INET, Socket::SOCK_STREAM)
Socket.new(Socket::AF_UNIX, Socket::SOCK_DGRAM)
 
# Ruby 1.9
Socket.new(:INET, :STREAM)
Socket.new(:UNIX, :DGRAM)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.