projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 1999-07-06 15:33:23 by simonmar]
[ghc-hetmet.git]
/
ghc
/
rts
/
RtsStartup.c
diff --git
a/ghc/rts/RtsStartup.c
b/ghc/rts/RtsStartup.c
index
1c50c08
..
d87f188
100644
(file)
--- 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
*
*
* (c) The GHC Team, 1998-1999
*
@@
-148,6
+148,7
@@
startupHaskell(int argc, char *argv[])
void
shutdownHaskellAndExit(int n)
{
void
shutdownHaskellAndExit(int n)
{
+ OnExitHook();
shutdownHaskell();
stg_exit(n);
}
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
*/
void
@@
-196,7
+197,7
@@
stg_exit(I_ n)
#ifdef PAR
par_exit(n);
#else
#ifdef PAR
par_exit(n);
#else
- OnExitHook();
exit(n);
#endif
}
exit(n);
#endif
}
+