From 741ca76912fc71269dce5519a360f8c186e0530f Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 18 Jul 2000 06:00:45 +0000 Subject: matz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/complex.rb | 2 -- lib/debug.rb | 1 + lib/ping.rb | 2 +- lib/weakref.rb | 4 ++-- 4 files changed, 4 insertions(+), 5 deletions(-) (limited to 'lib') 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