From e77e233935007c418acdcac13de0e76e3b514fb0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 25 May 2022 18:47:16 +0900 Subject: [ruby/timeout] Hack to avoid leak checker https://github.com/ruby/timeout/commit/9a9b03b44c --- lib/timeout.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/timeout.rb') diff --git a/lib/timeout.rb b/lib/timeout.rb index 996df6e859..24ffccb0da 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -99,6 +99,7 @@ module Timeout def self.create_timeout_thread Thread.new do + Thread.current.thread_variable_set(:"\0__detached_thread__", true) requests = [] while true until QUEUE.empty? and !requests.empty? # wait to have at least one request -- cgit v1.2.3