[erlang-questions] How to fork/clone a process in Erlang?

Xiao Jia stfairy@REDACTED
Thu Sep 6 17:02:00 CEST 2012


Hi,

How can I fork/clone a process in Erlang, just as the fork in Unix?

I have searched a lot but just got nothing related to that. I suppose the
usage may look like this:

case fork() of
  {parent, Pid} -> in_parent_process_now();
  {child, Pid} -> in_child_process_now();
end.

Any ideas?


Thanks,

Xiao Jia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120906/1116509c/attachment.htm>


More information about the erlang-questions mailing list