diff options
author | Jean Boussier <[email protected]> | 2022-07-13 13:48:21 +0200 |
---|---|---|
committer | git <[email protected]> | 2022-07-13 21:16:15 +0900 |
commit | 8290d76647f8db9df6d18c654d723b14cf0b3507 (patch) | |
tree | fad0f907bda249a69e4f46aa2194cf13da3a328a /lib/timeout.rb | |
parent | 268269687c8747eb0bb67b09025b7ff7f495eba6 (diff) |
[ruby/timeout] Give a name to the background thread
https://github.com/ruby/timeout/commit/5594ae2f4d
Diffstat (limited to 'lib/timeout.rb')
-rw-r--r-- | lib/timeout.rb | 1 |
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 |