summaryrefslogtreecommitdiff
path: root/rts/Prelude.h
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-11-07 15:24:00 +0000
committerSimon Marlow <marlowsd@gmail.com>2011-11-08 13:25:33 +0000
commit2babc2a527533a67a59cb62782e80292f689fa10 (patch)
treefac47b8dd259cacb2f71da2d57d7a2c31077d4b3 /rts/Prelude.h
parent81e29e42d6eea1f1e54cbec698aa1fdf3c6fb7f7 (diff)
downloadhaskell-2babc2a527533a67a59cb62782e80292f689fa10.tar.gz
Flush stdout and stderr during hs_exit() (#5594)
Ensures that these handles are flushed even when the RTS is being used as a library, with no main. Needs a corresponding change to libraries/base.
Diffstat (limited to 'rts/Prelude.h')
-rw-r--r--rts/Prelude.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/Prelude.h b/rts/Prelude.h
index 86bb6099fb..c103b1e0e6 100644
--- a/rts/Prelude.h
+++ b/rts/Prelude.h
@@ -47,6 +47,8 @@ PRELUDE_CLOSURE(base_GHCziConcziSync_runSparks_closure);
PRELUDE_CLOSURE(base_GHCziConcziIO_ensureIOManagerIsRunning_closure);
PRELUDE_CLOSURE(base_GHCziConcziSignal_runHandlers_closure);
+PRELUDE_CLOSURE(base_GHCziTopHandler_flushStdHandles_closure);
+
PRELUDE_INFO(ghczmprim_GHCziTypes_Czh_static_info);
PRELUDE_INFO(ghczmprim_GHCziTypes_Izh_static_info);
PRELUDE_INFO(ghczmprim_GHCziTypes_Fzh_static_info);