Fix #4533 - unregister callbacks on exception, fixing a memory leak
authorBryan O'Sullivan <bos@serpentine.com>
Sat, 27 Nov 2010 18:18:26 +0000 (18:18 +0000)
committerBryan O'Sullivan <bos@serpentine.com>
Sat, 27 Nov 2010 18:18:26 +0000 (18:18 +0000)
Our problem here was that if a thread blocked in threadWait or
threadDelay and was killed by an exception thrown from another thread,
its registration with the IO manager would not be cleared.

The fix is simply to install exception handlers that do the cleanup and
propagate the exception.


No differences found