[Haskell-cafe] FFI: how to handle external dll crashes
miroslav.karpis at gmail.com
Mon Sep 23 15:32:35 CEST 2013
Thanks for that. I checked forkProcess - which is packed in POSIX module.
I'm building under windows. Do I need to go via cygwin, is there some other
way for creating new OS process?
On Mon, Sep 23, 2013 at 1:46 PM, Niklas Hambüchen <mail at nh2.me> wrote:
> I don't think any of your code actually forks of an *OS process*.
> There three main kinds of threading constructs:
> * Haskell threads (forkIO)
> * Operating System threads (forkOS)
> * Operating System processes (forkProcess, fork() in C)
> Async uses the first one, you will need last one (which is similar to
> effectively start two Haskell programs).
> On 23/09/13 20:41, Miro Karpis wrote:
> > Hi Niklas,
> > I think that I'm doing this in my try2 function with tryAny and catchAny
> > functions. Unfortunately that didn't work. I'm just starting with
> > Haskell so maybe also my implementation of my haskell code is not 100%
> > correct.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe