From a5282a27597663060523b31701d4c755d61b5731 Mon Sep 17 00:00:00 2001 From: John Bachir Date: Sun, 26 Sep 2021 00:17:00 +0100 Subject: [PATCH] new behavior --- lib/sane_timeout.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sane_timeout.rb b/lib/sane_timeout.rb index f9f11d9..6a97b95 100644 --- a/lib/sane_timeout.rb +++ b/lib/sane_timeout.rb @@ -63,7 +63,8 @@ def timeout(sec, klass = nil) #:yield: +sec+ rescue => e x.raise e else - x.kill + x.raise exception, "execution expired" + x.join current_thread.raise exception, "execution expired" end }