KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Good day, i have following setup for my little service: -module(mrtask_net). -export([start/0, stop/0, listen/1]). -define(SERVER, mrtask_net). start() -> Pid = spawn_link(fun() -> ?MODULE:listen(4488) end), register(?SERVER, Pid), Pid. stop() -> exit(?SERVER, ok). .... And here is the repl excerpt: (emacs@rover)83> mrtask_net:start(). <0.445.0> (emacs@rover)84> mrtask_net:stop(). ** exception error: bad argument in function exit/2 called as exit(mrtask_net,ok) in call from mrtask_net:stop/0 (emacs@rover)85> As you see, stopping process produces error, process is stopping though. What does this error mean and how to make thing clean ?
Tags (comma-separated)
Save Edits
Cancel