Skip to content
  • Simon Marlow's avatar
    [project @ 2006-01-12 16:16:28 by simonmar] · 44713ec1
    Simon Marlow authored
    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.
    44713ec1