[Haskell-cafe] openFd under -threaded gets interrupted

Mitar mmitar at gmail.com
Wed Dec 16 09:18:10 EST 2009


I am using such code:

fd <- openFd device ReadWrite Nothing OpenFileFlags { append = False,
noctty = True, exclusive = False, nonBlock = True, trunc = False }

And if I compile my program with -threaded option I always get such error:

interrupted (Interrupted system call)

But without -threaded it works flawlessly. I am using Linux 2.6.30
amd64, GHC 6.10.4. It was the same with 6.8.

Why is this? Is there any workaround? Does it work in 6.12?


More information about the Haskell-Cafe mailing list