diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-19 14:15:07 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-19 14:15:07 +0000 |
commit | 7d4c410a8ab48c6225245ccae67b93052f773c3f (patch) | |
tree | 4a8d6885626006d5a09b8a803df1431c6e3b39db | |
parent | 41c326a09591b8c1742723b388318fc16ccc9ab5 (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-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/tracer.rb | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -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 |