summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-19 14:15:07 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-19 14:15:07 +0000
commit7d4c410a8ab48c6225245ccae67b93052f773c3f (patch)
tree4a8d6885626006d5a09b8a803df1431c6e3b39db
parent41c326a09591b8c1742723b388318fc16ccc9ab5 (diff)
* lib/tracer.rb (trace_func): save and recover Thread.critical state.
Fixed by Fukumoto Atsushi <fukumoto@imasy.or.jp> [ruby-dev:19830] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/tracer.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0642474df6..8a1539c74a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Mar 19 23:05:30 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/tracer.rb (trace_func): save and recover Thread.critical state.
+ Fixed by Fukumoto Atsushi <fukumoto@imasy.or.jp> [ruby-dev:19830]
+
Tue Mar 11 21:06:31 2003 Minero Aoki <aamine@loveruby.net>
* lib/net/smtp.rb (auth_cram_md5): Digest string had wrongly
diff --git a/lib/tracer.rb b/lib/tracer.rb
index 54179dd193..149d50314f 100644
--- a/lib/tracer.rb
+++ b/lib/tracer.rb
@@ -121,6 +121,7 @@ class Tracer
return unless p.call event, file, line, id, binding, klass
end
+ saved_crit = Thread.critical
Thread.critical = true
stdout.printf("#%d:%s:%d:%s:%s: %s",
get_thread_no,
@@ -129,7 +130,7 @@ class Tracer
klass || '',
EVENT_SYMBOL[event],
get_line(file, line))
- Thread.critical = false
+ Thread.critical = saved_crit
end
Single = new