Should really call OnExitHook() in shutdownHaskellAndExit().
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
- * $Id: RtsStartup.c,v 1.16 1999/07/03 18:39:40 sof Exp $
+ * $Id: RtsStartup.c,v 1.17 1999/07/06 15:33:23 simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
*
* (c) The GHC Team, 1998-1999
*
void
shutdownHaskellAndExit(int n)
{
void
shutdownHaskellAndExit(int n)
{
shutdownHaskell();
stg_exit(n);
}
shutdownHaskell();
stg_exit(n);
}
- * called from STG-land to exit the program cleanly
+ * called from STG-land to exit the program
#ifdef PAR
par_exit(n);
#else
#ifdef PAR
par_exit(n);
#else