From 975ffdba057a77406ef33cf6ba06c22cdf50f8a0 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Wed, 13 Jul 2022 13:48:21 +0200 Subject: [PATCH] Give a name to the background thread --- lib/timeout.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/timeout.rb b/lib/timeout.rb index 95dd149..2aad1d7 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -120,6 +120,7 @@ def self.create_timeout_thread requests.reject!(&:done?) end end + watcher.name = "Timeout stdlib thread" watcher.thread_variable_set(:"\0__detached_thread__", true) watcher end