[erlang-questions] Parents always take children with them?

andrew cooke andrew@REDACTED
Sat Apr 28 22:05:35 CEST 2007


Hi,

Do children processes die when the parent finishes (even normally)?

If so, is there any way to stop this, or do I simply have to arrange that
the last child is called directly rather than spawned (imagine a parent
spawning a set of children and then exiting)?  Doing this (redirecting the
parent thread "into" the final child) makes my code less symmetric than I
would like :o)  I would prefer it if a parent could be made to wait for
all children to terminate (if terminating normally).

Thanks,
Andrew






More information about the erlang-questions mailing list