FFI: Problem with Signal Handler Interruptions

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Aug 7 11:32:39 EDT 2009


Hello Levi,

Friday, August 7, 2009, 6:48:42 PM, you wrote:

> 1.  How can one safely perform a blocking wait on a system call via
> FFI when compiling with -threaded

i think you should use forkOS to create OS thread dedicated to Haskell
thread

> and avoid signal interruptions which cause the call to return with EINTR?

don't know, but may be you can retry on this retcode or disable EINTR in one
specific OS thread




-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Glasgow-haskell-users mailing list