khaines / enigo.com wrote: > On Mon, 18 Sep 2006, Joel VanderWerf wrote: > >> I wish I had an easy answer to this problem, but I don't. Are timeout >> and ensure inherently incompatible? > > I don't have an answer, but what if you make your ensure section into a > critical section? > > ensure > Thread.critical = true > # do stuff > Thread.critical = false > end Even if this worked reliably, using a critical section would be udesirable if the ensure clause invokes IO (e.g. waiting for some network operation to finish). That would freeze the whole process. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407