Skip to content
Snippets Groups Projects
Commit 99032744 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1999-07-06 15:33:23 by simonmar]

Should really call OnExitHook() in shutdownHaskellAndExit().
parent ca6e1e45
No related branches found
No related tags found
No related merge requests found
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* $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
* *
...@@ -148,6 +148,7 @@ startupHaskell(int argc, char *argv[]) ...@@ -148,6 +148,7 @@ startupHaskell(int argc, char *argv[])
void void
shutdownHaskellAndExit(int n) shutdownHaskellAndExit(int n)
{ {
OnExitHook();
shutdownHaskell(); shutdownHaskell();
stg_exit(n); stg_exit(n);
} }
...@@ -187,7 +188,7 @@ shutdownHaskell(void) ...@@ -187,7 +188,7 @@ shutdownHaskell(void)
/* /*
* called from STG-land to exit the program cleanly * called from STG-land to exit the program
*/ */
void void
...@@ -196,7 +197,7 @@ stg_exit(I_ n) ...@@ -196,7 +197,7 @@ stg_exit(I_ n)
#ifdef PAR #ifdef PAR
par_exit(n); par_exit(n);
#else #else
OnExitHook();
exit(n); exit(n);
#endif #endif
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment