aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2022-07-13 13:48:21 +0200
committergit <svn-admin@ruby-lang.org>2022-07-13 21:16:15 +0900
commit8290d76647f8db9df6d18c654d723b14cf0b3507 (patch)
treefad0f907bda249a69e4f46aa2194cf13da3a328a /lib
parent268269687c8747eb0bb67b09025b7ff7f495eba6 (diff)
downloadruby-8290d76647f8db9df6d18c654d723b14cf0b3507.tar.gz
[ruby/timeout] Give a name to the background thread
https://github.com/ruby/timeout/commit/5594ae2f4d
Diffstat (limited to 'lib')
-rw-r--r--lib/timeout.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/timeout.rb b/lib/timeout.rb
index 95dd1490ae..2aad1d7465 100644
--- a/lib/timeout.rb
+++ b/lib/timeout.rb
@@ -120,6 +120,7 @@ module Timeout
requests.reject!(&:done?)
end
end
+ watcher.name = "Timeout stdlib thread"
watcher.thread_variable_set(:"\0__detached_thread__", true)
watcher
end