Symbols in Ruby are just atoms in Erlang. So :error (Ruby) is error (Erlang) .
This is the best book I have found so far to learn LISP and it is FREE!. Thanks a lot Dr. Touretzsky. Common Lisp: A Gentle Introduction to Symbolic Computation
I used to think calling gen_fsm:send_event( FsmRef , stop ) will unregister the global name associated with it.
But experiments suggest that is not the case.
global:unregister_name( FsmRef ) seems to FIX the issue.
Also some how using rpc call on different node to gen_fsm:start_link doesn’t give error that name is already registered. Strange!