From: Tanaka Akira Date: 2008-03-18T23:02:24+09:00 Subject: Re: Thread#raise, Thread#kill, and timeout.rb are unsafe In article <41DCFB5E-7EF8-4A1E-81B7-95A6A7691F04@grayproductions.net>, James Gray writes: > Perl went kind-of along these lines around version 5.8, if I recall > correctly. They added "safe signals" which were signals that only > interrupted at times when it was safe for them to do so. It's from 5.7.3. http://search.cpan.org/dist/perl/pod/perlipc.pod#Deferred_Signals_(Safe_Signals) > This did have a few weird side-effects though. For example, running a > complex regex would shutoff signal handling for the duration. That > meant you could no longer timeout a regex. Ruby already defer signal handling same as Perl. -- Tanaka Akira