[project @ 2006-01-12 16:16:28 by simonmar]
authorsimonmar <unknown>
Thu, 12 Jan 2006 16:16:28 +0000 (16:16 +0000)
committersimonmar <unknown>
Thu, 12 Jan 2006 16:16:28 +0000 (16:16 +0000)
commit44713ec1fa30bab4b6e087d017ca8524f9792b34
tree56ad2884a412711925520630678cbb5b200c990a
parentde910f06ebec544c71cd5c41dbb11937812c7a1a
[project @ 2006-01-12 16:16:28 by simonmar]
GHC.runStmt: run the statement in a new thread to insulate the
environment from bad things that the user code might do, such as fork
a thread to send an exception back at a later time.  In order to do
this, we had to keep track of which thread the ^C exception should go
to in a global variable.

Also, bullet-proof the top-level exception handler in GHCi a bit;
there was a small window where an exception could get through, so if
you lean on ^C for a while then press enter you could cause GHCi to
exit.
ghc/compiler/ghci/InteractiveUI.hs
ghc/compiler/main/GHC.hs
ghc/compiler/utils/Panic.lhs