From: Paul Brannan Date: 2008-03-20T05:57:02+09:00 Subject: Re: Thread#raise, Thread#kill, and timeout.rb are unsafe On Thu, Mar 20, 2008 at 03:50:13AM +0900, MenTaLguY wrote: > There are really two alternatives: > > 1. fix the operation so that it succeeds or fails atomically > > 2. otherwise, make the operation always non-interruptable For I/O operations, it is typically desirable for the operation to be interruptible, but to get the result of the partial operation after it is interrupted. At least, that's how it works at the C level with respect to signals. Paul