<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Message: 15<br>
Date: Mon, 28 Mar 2011 21:31:39 +0400<br>
From: Michael A Baikov &lt;<a href="mailto:pacak@bk.ru">pacak@bk.ru</a>&gt;<br>
Subject: [Haskell-cafe] Iteratee, ghc 6.12/7.0 strange behaviour -<br>
        epollControl: permission denied (Operation not permitted)<br>
To: <a href="mailto:haskell-cafe@haskell.org">haskell-cafe@haskell.org</a><br>
Message-ID: &lt;<a href="mailto:E1Q4GHz-00077E-00.pacak-bk-ru@f146.mail.ru">E1Q4GHz-00077E-00.pacak-bk-ru@f146.mail.ru</a>&gt;<br>
Content-Type: text/plain; charset=koi8-r<br>
<br>
<br>
<br>
I am still playing with lastest iteratee and i think i found something strange.<br>
<br>
<br>
let&#39;s suppose we have a file test.hs like this:<br>
<br>
import Data.Iteratee<br>
import <a href="http://Data.Iteratee.IO" target="_blank">Data.Iteratee.IO</a><br>
import Data.Iteratee.Char<br>
<br>
main = fileDriver printLines &quot;/etc/passwd&quot;<br>
<br>
It works fine when executed via runhaskell / ghci in ghc 6.12. Compiled version in ghc 7<br>
also works, but when i am trying to execute it via runhaskell / ghci i am getting this error:<br>
<br>
iter.hs: epollControl: permission denied (Operation not permitted)<br>
<br>
Any ideas?<br></blockquote><div><br></div><div>Apologies, I won&#39;t have time to look at this for a few days.  However, could you try a test using the functions from Data.Iteratee.IO.Posix directly?  That would help narrow down the issue.  I suspect it&#39;s either a bug in ghc&#39;s IO, or the semantics of some IO functions changed without my noticing.</div>
<div><br></div><div>John L.</div></div>