Hi,
In message "Re: Thread#raise, Thread#kill, and timeout.rb are unsafe"
on Fri, 14 Mar 2008 06:00:54 +0900, Paul Brannan <pbrannan / atdesk.com> writes:
|I'm not convinced KeyboardInterrupt can be handled safely, either, in a
|script. What happens if a KeyboardInterrupt exception is raised inside
|an ensure block? It could easily result in resource leaks.
You are right, but keyboard interrupt has been there so long in the
history, and we hardly see such leak problems, so I assume it's safer
than you might think. At least, we cannot not removed the interrupts
from the language.
matz.