X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FRtsStartup.c;h=7b91e403c33d37667407d4f427607976cc041139;hb=5c67176de89fee19a02056216a7c58579e765148;hp=4c281a60be058a76a5cab1c5044e0e6304c0dbd7;hpb=17315bf6c11c17ad38ca5a65d7e938ac32d07d8a;p=ghc-hetmet.git diff --git a/ghc/rts/RtsStartup.c b/ghc/rts/RtsStartup.c index 4c281a6..7b91e40 100644 --- a/ghc/rts/RtsStartup.c +++ b/ghc/rts/RtsStartup.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: RtsStartup.c,v 1.20 1999/09/15 13:45:20 simonmar Exp $ + * $Id: RtsStartup.c,v 1.21 1999/09/22 11:53:33 sof Exp $ * * (c) The GHC Team, 1998-1999 * @@ -121,9 +121,11 @@ startupHaskell(int argc, char *argv[]) /* Initialise the stats department */ initStats(); - /* Initialise the user signal handler set */ #if !defined(mingw32_TARGET_OS) && !defined(PAR) + /* Initialise the user signal handler set */ initUserSignals(); + /* Set up handler to run on SIGINT */ + init_shutdown_handler(); #endif /* When the RTS and Prelude live in separate DLLs, @@ -179,7 +181,7 @@ shutdownHaskell(void) /* stop the ticker */ initialize_virtual_timer(0); - + #if defined(PROFILING) || defined(DEBUG) endProfiling(); #endif