X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fruntime%2Fmain%2FStgStartup.lhc;fp=ghc%2Fruntime%2Fmain%2FStgStartup.lhc;h=57089df79dc0c30aca45a4d6e079ce0f116d70e8;hb=7bc7b37aabca07a9088621d8785bb413dbd0baa6;hp=6b6b77ad0751c5f912a5c14ee59dd14fc0a63b16;hpb=d72765457cd88b247b63b640bff7e29e0cd764b4;p=ghc-hetmet.git diff --git a/ghc/runtime/main/StgStartup.lhc b/ghc/runtime/main/StgStartup.lhc index 6b6b77a..57089df 100644 --- a/ghc/runtime/main/StgStartup.lhc +++ b/ghc/runtime/main/StgStartup.lhc @@ -310,6 +310,8 @@ STGFUN(ErrorIO_innards) /* Assumes that "TopClosure" has been set already */ { FB_ + fflush(stdout); + fflush(stderr); if (ErrorIO_call_count >= 16 /* MAGIC CONSTANT */ ) { /* Don't wrap the calls; we're done with STG land */ fflush(stdout); @@ -395,6 +397,8 @@ ErrorIO_innards(STG_NO_ARGS) /* Assumes that "TopClosure" has been set already */ { FB_ + fflush(stdout); + fflush(stderr); if (ErrorIO_call_count >= 16 /* MAGIC CONSTANT */ ) { /* Don't wrap the calls; we're done with STG land */ fflush(stdout);