[project @ 2004-10-05 15:56:17 by simonmar]
authorsimonmar <unknown>
Tue, 5 Oct 2004 15:56:17 +0000 (15:56 +0000)
committersimonmar <unknown>
Tue, 5 Oct 2004 15:56:17 +0000 (15:56 +0000)
commitc79996421b5b2e1bf4f5e59f675f5b45fd2352dd
tree4f7fea26f6f3620c7fb4cabedaa688c8dad88730
parent3e0d5857cc3fd3316b7bfa41b3afe697a11a794d
[project @ 2004-10-05 15:56:17 by simonmar]
If we try to use a finalized handle, then throw a useful exception.
Before, the thread would just block forever on the MVar or get a
BlockedOnDeadMVar exception.

The fact that you can actually get into a situation where a finalized
handle can be accessed is arguably a bug itself, but at least now
we'll be able to quickly see when it is happening which should cut
down on debugging time.
GHC/Handle.hs