SIGALRM, SIGVTALRM, and third party libraries
bos at serpentine.com
Sat Sep 4 01:28:38 EDT 2010
On Fri, Sep 3, 2010 at 2:13 PM, Edward Z. Yang <ezyang at mit.edu> wrote:
> I think the primary downside is that it's not portable (yet) to Windows.
That's fine, assuming that blocking those signals doesn't cause some more
catastrophic failure. My current narrow need is for code that works on the
platforms I actually use :-)
> Marlow and I have been working on "interruptible FFI calls", and one of the
> things that needs to be addressed along the way is that the RTS should
> "portable" equivalents of the pthread functions which are blessed for
> libraries to use for this purpose. Maybe we should emulate threading
> at the pthreads layer?
I don't know. I imagine you've Googled and found this?
> P.S. I assume that the mysql C bindings are poorly written so as not to
> with alarm signals?
It's a very rare library that handles an errno of EINTR after a system call
properly. The mysql client is no exception.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Glasgow-haskell-users