summaryrefslogtreecommitdiff
path: root/lib
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
parent448e63d627bf3653da0b3dc0dcf93e161829dc71 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/complex.rb2
-rw-r--r--lib/debug.rb1
-rw-r--r--lib/ping.rb2
-rw-r--r--lib/weakref.rb4
4 files changed, 4 insertions, 5 deletions
diff --git a/lib/complex.rb b/lib/complex.rb
index 56dd040ac1..733e4530e3 100644
--- a/lib/complex.rb
+++ b/lib/complex.rb
@@ -500,5 +500,3 @@ module Math
module_function :atanh!
end
-
-
diff --git a/lib/debug.rb b/lib/debug.rb
index d20d1ebbfc..71fe830475 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -578,6 +578,7 @@ EOHELP
end
def excn_handle(file, line, id, binding)
+ p $!
if $!.type <= SystemExit
set_trace_func nil
exit
diff --git a/lib/ping.rb b/lib/ping.rb
index 065b1d2303..48657818cc 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
diff --git a/lib/weakref.rb b/lib/weakref.rb
index 3307a2e5aa..9e510d6f1c 100644
--- a/lib/weakref.rb
+++ b/lib/weakref.rb
@@ -43,8 +43,8 @@ class WeakRef<Delegator
def initialize(orig)
super
@__id = orig.__id__
- ObjectSpace.define_finalizer orig, @@final
- ObjectSpace.defin_finalizer self, @@final
+ ObjectSpace.define_finalizer orig, @@final
+ ObjectSpace.define_finalizer self, @@final
ID_MAP[@__id] = [] unless ID_MAP[@__id]
ID_MAP[@__id].push self.__id__
ID_REV_MAP[self.id] = @__id