[erlang-questions] application:stop(mnesia) blocking

Colm Dougan <>
Tue Jan 27 19:03:11 CET 2009

Hi list,

I've got a strange problem with mnesia:stop that is driving me nuts.
I'm sure it must be something trivial I've done wrong but I can't seem
to figure it out.  I have a trivial application called "foo" which
contains a gen_server called foo_main.  The gen_server does an
application:start(mnesia) in its init callback and an
application:stop(mnesia) in the terminate callback.   For some reason
the latter seems to block until it eventually gets killed by the

I'd be very grateful if someone could look at my code and point out
the inevitably dumb thing I'm doing wrong :



More information about the erlang-questions mailing list