#5005: epollCreate: unsupported operation (Function not implemented)
---------------------------------+------------------------------------------
    Reporter:  nomeata           |       Owner:                    
        Type:  bug               |      Status:  new               
    Priority:  normal            |   Component:  Compiler          
     Version:  7.0.2             |    Keywords:                    
    Testcase:                    |   Blockedby:                    
          Os:  Linux             |    Blocking:                    
Architecture:  Unknown/Multiple  |     Failure:  Compile-time crash
---------------------------------+------------------------------------------

Comment(by tibbe):

 Replying to [comment:8 nomeata]:
 > Replying to [comment:6 tibbe]:
 > > I'd be fine to include a run-time check if necessary.
 >
 > right, I saw that. The problem is that we (at least in Debian) expect a
 ghc built on a newer kernel to also work on an older kernel.
 >
 > The alternative to a run-time check is using epoll_create() only. The
 only difference is, as far I was told, when another thread forks between
 the call to epoll_create() and setCloseOnExit. Given that this is
 acceptable behaviour on pre-2.6.27 kernels, woudn’t it be acceptable
 behaviour on later kernels as well?

 Perhaps. I haven't considered the issue in depth so I don't know what the
 consequences of using `epoll_create` instead of `epoll_create1` are. If
 the fix I posted fixes the problem we don't even have to make a trade-off.

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