Re: [GHC] #4119: File buffering isn't flushed at exit

2010-06-13 Thread GHC
#4119: File buffering isn't flushed at exit
--+-
  Reporter:  EyalLotem|  Owner:
  Type:  bug  | Status:  closed
  Priority:  normal   |  Milestone:
 Component:  libraries/base   |Version:  6.12.1
Resolution:  invalid  |   Keywords:  file buffers  
Difficulty:   | Os:  Linux 
  Testcase:   |   Architecture:  x86_64 (amd64)
   Failure:  Incorrect result at runtime  |  
--+-
Changes (by igloo):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 This is an example of how finalizers aren't guaranteed to be run. If you
 use `withFile` then the handle will be closed and the data written, even
 if there is an exception:
 {{{
 import System.IO

 main = withFile "test.txt" WriteMode $ \h ->
hPutStrLn h "Hello world"
 }}}

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #4119: File buffering isn't flushed at exit

2010-06-07 Thread GHC
#4119: File buffering isn't flushed at exit
---+
Reporter:  EyalLotem   |   Owner: 
Type:  bug |  Status:  new
Priority:  normal  |   Component:  libraries/base 
 Version:  6.12.1  |Keywords:  file buffers   
  Os:  Linux   |Testcase: 
Architecture:  x86_64 (amd64)  | Failure:  Incorrect result at runtime
---+
 In C, there's an atexit handler to fflush all FILE* files.

 In most other environments (e.g: Python files), file buffers are flushed
 in a graceful exit.  With GHC 6.12.1, they aren't.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs