#5184: createDirectory does not retry on EINTR (interrupted)
-----------------------------+----------------------------------------------
    Reporter:  CoreyOConnor  |       Owner:                             
        Type:  bug           |      Status:  new                        
    Priority:  normal        |   Component:  libraries/unix             
     Version:  7.0.3         |    Keywords:                             
    Testcase:                |   Blockedby:                             
          Os:  MacOS X       |    Blocking:                             
Architecture:  x86           |     Failure:  Incorrect result at runtime
-----------------------------+----------------------------------------------
 With GHC 7.0.3 on Mac OS X 32bit the createDirectory call does not retry
 if the call is interrupted. I would expect the call to be retried.

 Unfortunately, I have not determined a small test program for this bug.
 This is the output from when this issue occurs:
 {{{
 /home/coconnor/Development/dev-system: createDirectory: interrupted
 (Interrupted system call)
 }}}

 Interestingly the directory indicated by this output does not match the
 directory requested to be created. The program calls:

 {{{
 createDirectoryIfMissing True "/home/coconnor/Development/dev-
 system/build/"
 }}}

 And it is known, at the time, that the directory
 "/home/coconnor/Development/dev-system" exists. Perhaps the method
 checking for if a directory exists is also receiving EINTR?

 This same program works as expected on linux 32bit & 64bit using GHC
 7.0.3.

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