diff options
author | simonmar <unknown> | 1999-07-06 15:33:23 +0000 |
---|---|---|
committer | simonmar <unknown> | 1999-07-06 15:33:23 +0000 |
commit | 99032744740fa870c7cf646d3fa651c6bcf5d2ee (patch) | |
tree | 7a058eb47771e8f77e03d3db69a4938cc3949b72 | |
parent | ca6e1e45c806ac5190589eb9e6720c5cf133df1b (diff) | |
download | haskell-99032744740fa870c7cf646d3fa651c6bcf5d2ee.tar.gz |
[project @ 1999-07-06 15:33:23 by simonmar]
Should really call OnExitHook() in shutdownHaskellAndExit().
-rw-r--r-- | ghc/rts/RtsStartup.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ghc/rts/RtsStartup.c b/ghc/rts/RtsStartup.c index 1c50c08c4a..d87f18862a 100644 --- a/ghc/rts/RtsStartup.c +++ b/ghc/rts/RtsStartup.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $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 * @@ -148,6 +148,7 @@ startupHaskell(int argc, char *argv[]) void shutdownHaskellAndExit(int n) { + OnExitHook(); shutdownHaskell(); stg_exit(n); } @@ -187,7 +188,7 @@ shutdownHaskell(void) /* - * called from STG-land to exit the program cleanly + * called from STG-land to exit the program */ void @@ -196,7 +197,7 @@ stg_exit(I_ n) #ifdef PAR par_exit(n); #else - OnExitHook(); exit(n); #endif } + |