summaryrefslogtreecommitdiff
path: root/lib/tracer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tracer.rb')
-rw-r--r--lib/tracer.rb3
1 files changed, 2 insertions, 1 deletions
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