#1753: GHC's file locking mechanism not prepared for close() returning -1
----------------------------+-----------------------------------------------
 Reporter:  guest           |          Owner:  igloo      
     Type:  merge           |         Status:  new        
 Priority:  normal          |      Milestone:  6.8.3      
Component:  libraries/base  |        Version:  6.6.1      
 Severity:  normal          |     Resolution:             
 Keywords:                  |     Difficulty:  Easy (1 hr)
 Testcase:  hClose002       |   Architecture:  Unknown    
       Os:  Multiple        |  
----------------------------+-----------------------------------------------
Changes (by simonmar):

  * testcase:  => hClose002
  * owner:  simonmar => igloo
  * type:  bug => merge

Comment:

 Fixed:
 {{{
 Thu Nov 22 09:42:07 GMT 2007  Simon Marlow <[EMAIL PROTECTED]>
   * FIX #1753
 }}}

 I made it so that if `close()` returns -1, the `Handle` is closed as
 normal, including removing the lock on the file if necessary, and then the
 exception is raised.  Test `hClose002` tests the behaviour, which is I
 think now matches Haskell 98.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1753#comment:3>
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