FFI: Problem with Signal Handler Interruptions

Simon Marlow marlowsd at gmail.com
Fri Aug 14 17:47:10 EDT 2009


Bulat Ziganshin wrote:
> 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

Why do you recommend forkOS here?  forkOS is normally only necessary if 
you need to access thread-local state in the C call.

Cheers,
	Simon



More information about the Glasgow-haskell-users mailing list