[GHC] #7773: Waiting on non-kqueue supported files on OS X

GHC cvs-ghc at haskell.org
Mon Mar 18 03:45:06 CET 2013


#7773: Waiting on non-kqueue supported files on OS X
----------------------------------------+-----------------------------------
Reporter:  AndreasVoellmy               |          Owner:                  
    Type:  bug                          |         Status:  new             
Priority:  normal                       |      Component:  libraries/base  
 Version:  7.7                          |       Keywords:                  
      Os:  MacOS X                      |   Architecture:  Unknown/Multiple
 Failure:  Incorrect result at runtime  |      Blockedby:                  
Blocking:                               |        Related:                  
----------------------------------------+-----------------------------------

Comment(by AndreasVoellmy):

 I added a patch to make the parallel io manager work the same way as the
 old io manager; namely, when a file is registered with the a kqueue-based
 IO manager and kevent returns EINVAL, then the manager simply calls the
 callback provided by the user for the event.

 This is a first step to an improved handling of this situation. Next step
 would be to register the event and callback with a manager that can
 actually handle the file appropriately. As discussed in the email thread
 with PHO, it seems that select is best for this. So to finish this, we
 should:

  1. Implement a select-based backend.
  2. Have the TimerManager use the select-based backend and export file
 registration commands from TimerManager.
  3. Have Thread handle the fallback to the TimerManager when the preferred
 IO manager fails.

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



More information about the ghc-tickets mailing list