#5594: stdout is not flushed using custom main
--------------------------+-------------------------------------------------
    Reporter:  handonson  |        Owner:  simonmar                   
        Type:  bug        |       Status:  new                        
    Priority:  high       |    Milestone:  7.4.1                      
   Component:  Compiler   |      Version:  7.0.4                      
    Keywords:             |     Testcase:                             
   Blockedby:             |   Difficulty:                             
          Os:  Linux      |     Blocking:                             
Architecture:  x86        |      Failure:  Incorrect result at runtime
--------------------------+-------------------------------------------------

Comment(by marlowsd@…):

 commit 2babc2a527533a67a59cb62782e80292f689fa10
 {{{
 Author: Simon Marlow <[email protected]>
 Date:   Mon Nov 7 15:24:00 2011 +0000

     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.

  rts/Prelude.h    |    2 ++
  rts/RtsStartup.c |   15 +++++++++++++++
  2 files changed, 17 insertions(+), 0 deletions(-)
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5594#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to