> You're right. With the above code, the parent chooses, for
> which children it
> has to wait (like this is done with Un*x fork() syscalls).
>
> If I get it right, you want a forked process to be able to
> shutdown the
> whole system?
I'm guessing that with MVars, killThread and exceptions, you can pretty much
implement any combination of daemonic/non-daemonic and server/client type
thread policies. If this isn't the case, please let us know!
One thing I'd like to do at some point is build up some libraries to
abstract away from various threading arrangements, in a similar way to what
the Erlang folk have done.
Cheers,
Simon