diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-01 16:42:48 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-01 16:42:48 +0000 |
commit | 95a17fedb517df78c4134c14470210f881479e90 (patch) | |
tree | 3c908b4e0df71b87e475cd92640f1c490fade0cf | |
parent | fa911fc8778aa19d3622f3bf5858fd694d6af1d1 (diff) |
* lib/ping.rb (Ping.pingecho): should rescue StandardError.
[ruby-dev:26677]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/ping.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Aug 2 01:41:28 2005 GOTOU Yuuzou <gotoyuzo@notwork.org> + + * lib/ping.rb (Ping.pingecho): should rescue StandardError. + [ruby-dev:26677] + Mon Aug 1 19:09:41 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * ext/tcltklib/tcltklib.c: refactoring - replaced rb_ivar_defined & diff --git a/lib/ping.rb b/lib/ping.rb index 7f970f96de..07b46374b2 100644 --- a/lib/ping.rb +++ b/lib/ping.rb @@ -49,7 +49,7 @@ module Ping end rescue Errno::ECONNREFUSED return true - rescue Timeout::Error + rescue Timeout::Error, StandardError return false end return true |