[project @ 2001-02-06 11:42:30 by simonmar] urk! when showing a handle, we don't replace the MVar.  For example, the following test causes a deadlock:
[project @ 2001-02-06 11:42:30 by simonmar]
urk! when showing a handle, we don't replace the MVar.  For example,
the following test causes a deadlock:

	main = do
	  getContents
	  catch getChar (\e -> print e >> return 'x')
	  catch getChar (\e -> print e >> return 'x')

To be merged into 4.08.

tjakway/ghcjvm,spacekitteh/smcghc,ghc-android/ghc,mfine/ghc,ml9951/ghc,mettekou/ghc,lukexi/ghc,GaloisInc/halvm-ghc,ezyang/ghc,anton-dessiatov/ghc,vTurbine/ghc,shlevy/ghc,AlexanderPankiv/ghc,nushio3/ghc,mettekou/ghc,siddhanathan/ghc,gridaphobe/ghc,shlevy/ghc,AlexanderPankiv/ghc,tjakway/ghcjvm,shlevy/ghc,vikraman/ghc,olsner/ghc,ilyasergey/GHC-XAppFix,frantisekfarka/ghc-dsi,GaloisInc/halvm-ghc,TomMD/ghc,mettekou/ghc,gcampax/ghc,olsner/ghc,wxwxwwxxx/ghc,anton-dessiatov/ghc,mcmaniac/ghc,mfine/ghc,green-haskell/ghc,nomeata/ghc,mfine/ghc,forked-upstream-packages-for-ghcjs/ghc,holzensp/ghc,ilyasergey/GHC-XAppFix,mcschroeder/ghc,fmthoma/ghc,mfine/ghc,forked-upstream-packages-for-ghcjs/ghc,nushio3/ghc,green-haskell/ghc,tibbe/ghc,tjakway/ghcjvm,vikraman/ghc,olsner/ghc,AlexanderPankiv/ghc,TomMD/ghc,nushio3/ghc,lukexi/ghc-7.8-arm64,fmthoma/ghc,ezyang/ghc,ghc-android/ghc,holzensp/ghc,ekmett/ghc,ml9951/ghc,vikraman/ghc,christiaanb/ghc,sgillespie/ghc,nushio3/ghc,sgillespie/ghc,hferreiro/replay,TomMD/ghc,GaloisInc/halvm-ghc,oldmanmike/ghc,sdiehl/ghc,mettekou/ghc,vikraman/ghc,TomMD/ghc,ryantm/ghc,olsner/ghc,TomMD/ghc,elieux/ghc,mfine/ghc,AlexanderPankiv/ghc,da-x/ghc,christiaanb/ghc,fmthoma/ghc,hferreiro/replay,oldmanmike/ghc,lukexi/ghc,AlexanderPankiv/ghc,jstolarek/ghc,wxwxwwxxx/ghc,snoyberg/ghc,acowley/ghc,tjakway/ghcjvm,holzensp/ghc,vikraman/ghc,nkaretnikov/ghc,tjakway/ghcjvm,ezyang/ghc,ilyasergey/GHC-XAppFix,shlevy/ghc,vTurbine/ghc,sgillespie/ghc,GaloisInc/halvm-ghc,lukexi/ghc-7.8-arm64,christiaanb/ghc,vikraman/ghc,urbanslug/ghc,elieux/ghc,bitemyapp/ghc,nushio3/ghc,urbanslug/ghc,sdiehl/ghc,fmthoma/ghc,ezyang/ghc,nushio3/ghc,hferreiro/replay,sdiehl/ghc,sdiehl/ghc,urbanslug/ghc,gridaphobe/ghc,forked-upstream-packages-for-ghcjs/ghc,oldmanmike/ghc,lukexi/ghc-7.8-arm64,nathyong/microghc-ghc,nkaretnikov/ghc,forked-upstream-packages-for-ghcjs/ghc,da-x/ghc,oldmanmike/ghc,ilyasergey/GHC-XAppFix,ryantm/ghc,anton-dessiatov/ghc,gridaphobe/ghc,lukexi/ghc-7.8-arm64,ekmett/ghc,nathyong/microghc-ghc,ezyang/ghc,forked-upstream-packages-for-ghcjs/ghc,da-x/ghc,mcschroeder/ghc,spacekitteh/smcghc,spacekitteh/smcghc,tjakway/ghcjvm,frantisekfarka/ghc-dsi,elieux/ghc,hferreiro/replay,nomeata/ghc,christiaanb/ghc,snoyberg/ghc,acowley/ghc,gcampax/ghc,urbanslug/ghc,anton-dessiatov/ghc,fmthoma/ghc,fmthoma/ghc,anton-dessiatov/ghc,elieux/ghc,ekmett/ghc,urbanslug/ghc,jstolarek/ghc,elieux/ghc,ekmett/ghc,jstolarek/ghc,holzensp/ghc,nathyong/microghc-ghc,wxwxwwxxx/ghc,olsner/ghc,nomeata/ghc,oldmanmike/ghc,fmthoma/ghc,frantisekfarka/ghc-dsi,wxwxwwxxx/ghc,jstolarek/ghc,forked-upstream-packages-for-ghcjs/ghc,sgillespie/ghc,gridaphobe/ghc,tibbe/ghc,mcmaniac/ghc,siddhanathan/ghc,elieux/ghc,mcmaniac/ghc,ghc-android/ghc,gridaphobe/ghc,nomeata/ghc,mcschroeder/ghc,mcschroeder/ghc,shlevy/ghc,gcampax/ghc,TomMD/ghc,oldmanmike/ghc,gcampax/ghc,shlevy/ghc,ryantm/ghc,ml9951/ghc,lukexi/ghc,gcampax/ghc,da-x/ghc,mcmaniac/ghc,ml9951/ghc,snoyberg/ghc,siddhanathan/ghc,snoyberg/ghc,sgillespie/ghc,green-haskell/ghc,hferreiro/replay,siddhanathan/ghc,da-x/ghc,gcampax/ghc,ml9951/ghc,sgillespie/ghc,frantisekfarka/ghc-dsi,urbanslug/ghc,ekmett/ghc,nkaretnikov/ghc,green-haskell/ghc,vTurbine/ghc,siddhanathan/ghc,ryantm/ghc,da-x/ghc,vTurbine/ghc,mcschroeder/ghc,nkaretnikov/ghc,ezyang/ghc,bitemyapp/ghc,gridaphobe/ghc,ghc-android/ghc,wxwxwwxxx/ghc,GaloisInc/halvm-ghc,gridaphobe/ghc,sdiehl/ghc,mcmaniac/ghc,AlexanderPankiv/ghc,nushio3/ghc,siddhanathan/ghc,acowley/ghc,tibbe/ghc,hferreiro/replay,acowley/ghc,mettekou/ghc,GaloisInc/halvm-ghc,ghc-android/ghc,ghc-android/ghc,GaloisInc/halvm-ghc,vTurbine/ghc,vTurbine/ghc,frantisekfarka/ghc-dsi,anton-dessiatov/ghc,tibbe/ghc,tibbe/ghc,sdiehl/ghc,AlexanderPankiv/ghc,spacekitteh/smcghc,nathyong/microghc-ghc,mfine/ghc,nkaretnikov/ghc,da-x/ghc,olsner/ghc,ezyang/ghc,ml9951/ghc,sgillespie/ghc,green-haskell/ghc,mettekou/ghc,vTurbine/ghc,ml9951/ghc,shlevy/ghc,olsner/ghc,snoyberg/ghc,TomMD/ghc,nathyong/microghc-ghc,mfine/ghc,hferreiro/replay,oldmanmike/ghc,mcschroeder/ghc,jstolarek/ghc,ml9951/ghc,nomeata/ghc,elieux/ghc,gcampax/ghc,wxwxwwxxx/ghc,bitemyapp/ghc,nkaretnikov/ghc,acowley/ghc,mettekou/ghc,vikraman/ghc,ryantm/ghc,urbanslug/ghc,christiaanb/ghc,snoyberg/ghc,anton-dessiatov/ghc,acowley/ghc,sdiehl/ghc,forked-upstream-packages-for-ghcjs/ghc,tjakway/ghcjvm,wxwxwwxxx/ghc,spacekitteh/smcghc,lukexi/ghc-7.8-arm64,nathyong/microghc-ghc,bitemyapp/ghc,acowley/ghc,nathyong/microghc-ghc,lukexi/ghc,lukexi/ghc,nkaretnikov/ghc,mcschroeder/ghc,ghc-android/ghc,siddhanathan/ghc,holzensp/ghc,bitemyapp/ghc,christiaanb/ghc,snoyberg/ghc,christiaanb/ghc