Fork: Difference between revisions

Content added Content deleted
(Corrected to work)
Line 149: Line 149:


start() ->
start() ->
spawn(fork,child,[]),
erlang:spawn( fun() -> child() end ),
io:format("This is the original process~n").
io:format("This is the original process~n").