summaryrefslogtreecommitdiff
path: root/lib/ping.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-18 06:00:45 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-18 06:00:45 +0000
commit741ca76912fc71269dce5519a360f8c186e0530f (patch)
treee17dcbed96ca3425229edff91e0dd94d2b7d14b2 /lib/ping.rb
parent448e63d627bf3653da0b3dc0dcf93e161829dc71 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/ping.rb')
-rw-r--r--lib/ping.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ping.rb b/lib/ping.rb
index 065b1d2303e..48657818cc7 100644
--- a/lib/ping.rb
+++ b/lib/ping.rb
@@ -38,9 +38,9 @@
#=end
require 'timeout'
+require "socket"
module Ping
- require "socket"
def pingecho(host, timeout=5, service="echo")
begin
timeout(timeout) do