On Thu, Feb 28, 2013 at 6:09 AM, C K Kashyap <[email protected]> wrote:

> Say I have a haskell function 'f' that does a forkIO and starts an action
> "a".  I create a DLL of this haskell code and inovke "f" from C. Can I
> expect the "a" to continue to run once "f" has returned to C?
>

While you're off in C the I/O manager and garbage collector are suspended.
Many C programs are not prepared to deal with the side effects of their
operation, such as being interrupted by timer signals; moreover, it is not
possible to have multiple handlers at the OS level for a signal, and C
programs may want to use the signal handlers themselves.

-- 
brandon s allbery kf8nh                               sine nomine associates
[email protected]                                  [email protected]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to