Three erlang processes have been created in erlang shell and registered locally, named Pid, Pid2, Pid3. Then I want to terminate “Pid” firstly by function “exit/2”.
(emacs@yus-iMac.local)62> exit(lsaaa_dispatch,test). %lsaaa_dispatch is the above Pid's local registered name
** exception error: bad argument
in function exit/2
called as exit(lsaaa_dispatch,test)
Why exception happens?
And why all the three process are terminate? Because I can’t find them in Pman.
exit/2 accepts a pid, not a term. And it’s defined by the kernel ‘erlang’ module.
Of your second question, think of the relationship these processes have with your shell.