<div dir="ltr">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?<div><br></div><div>m.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 23, 2013 at 1:46 PM, Niklas Hambüchen <span dir="ltr"><<a href="mailto:mail@nh2.me" target="_blank">mail@nh2.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey,<br>
<br>
I don't think any of your code actually forks of an *OS process*.<br>
<br>
There three main kinds of threading constructs:<br>
<br>
* Haskell threads (forkIO)<br>
* Operating System threads (forkOS)<br>
* Operating System processes (forkProcess, fork() in C)<br>
<br>
Async uses the first one, you will need last one (which is similar to<br>
effectively start two Haskell programs).<br>
<br>
On 23/09/13 20:41, Miro Karpis wrote:<br>
> Hi Niklas,<br>
> I think that I'm doing this in my try2 function with tryAny and catchAny<br>
> functions. Unfortunately that didn't work. I'm just starting with<br>
> Haskell so maybe also my implementation of my haskell code is not 100%<br>
> correct.<br>
</blockquote></div><br></div>