Re: [Haskell-cafe] NOT Iteratee, ghc 6.12/7.0 strange behaviour -epollControl: permission denied (Operation not permitted)

2011-03-31 Thread Michael A Baikov
It works fine up to the point when makefdCallback tries to use GHC.Conc.threadWaitRead on fd So my example is simplifed in to this: import System.Posix.IO import GHC.Conc main = do fd - openFd /etc/passwd ReadOnly Nothing defaultFileFlags threadWaitRead fd-- the big bang

Re: [Haskell-cafe] NOT Iteratee, ghc 6.12/7.0 strange behaviour -epollControl: permission denied (Operation not permitted)

2011-03-31 Thread Bryan O'Sullivan
On Thu, Mar 31, 2011 at 11:19 AM, Michael A Baikov pa...@bk.ru wrote: import System.Posix.IO import GHC.Conc main = do fd - openFd /etc/passwd ReadOnly Nothing defaultFileFlags threadWaitRead fd-- the big bang happens right here. closeFd fd There were a couple of bugs in

Re: [Haskell-cafe] NOT Iteratee, ghc 6.12/7.0 strange behaviour-epollControl: permission denied (Operation not permitted)

2011-03-31 Thread Michael A Baikov
I am running 7.0.3. -Original Message- On Thu, Mar 31, 2011 at 11:19 AM, Michael A Baikov pa...@bk.ru wrote: import System.Posix.IO import GHC.Conc main = do fd - openFd /etc/passwd ReadOnly Nothing defaultFileFlags threadWaitRead fd-- the big bang happens