At Sat, 22 May 2010 10:11:35 -0400, Neil Van Dyke wrote:
> This seems to work, but I'm wondering whether there's a race condition
> (e.g., custodian shutdown code is executed in the thread itself, and
> that code can kill its own evaluation prematurely),
That's no problem. A thread can reliably shut down its own custodian.