[erlang-questions] Re: Cannot unload module from remote shell
Fri Dec 17 11:23:29 CET 2010
Matt> > You can investigate the problem a bit by using the 'code' module. In
Matt> > particular, try calling
Matt> > code:which(dmitrys_module)
Dmitry> That's it. Thank you, Matt. So, if this is really unexpected,
Dmitry> I can assume that RabbitMQ overrides the default compilation
Dmitry> procedure, caching the compiled module, right? And, probably,
Dmitry> the default loading procedure, too, since /var/lib/rabbitmq is
Dmitry> missing in the output of code:get_path.
On the copy of rabbitmq (Debian, 1.8.1-1) I just installed:
Notice that ".", i.e. the current directory, is included in the path.
What does rabbitmq use for a current directory?
So there's nothing unexpected about Erlang loading code from
/var/lib/rabbitmq, it's the current directory for rabbitmq and
the current directory is in the code path!
(Bonus question for the rabbitmq guys: what's the .erlang.cookie file
for? Is it a cookie or a hash of a cookie?)
More information about the erlang-questions