Skip to content

Commit 6be148a

Browse files
committed
Use process name for main thread
1 parent b62f93b commit 6be148a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vernier/thread_names.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def pretty_name(thread)
3535
return name if name && !name.empty?
3636

3737
if thread == Thread.main
38-
return "main"
38+
return $0
3939
end
4040

4141
name = Thread.instance_method(:inspect).bind_call(thread)

0 commit comments

Comments
 (0)