Closed pankajsoni19 closed 4 years ago
Releases are configured via relx.config
and vm.args
, do you have anything special in there?
Does it work if you only have the start/stop callbacks and not prep_stop?
Did you try using prep_stop to trace everything the VM is doing after it has been called?
yes, I figured it out. Calling any application:fun
while in prep_stop blocks it indefinitely. application may be doing a sync_call in module:stop
and so essentially this blocks the eventloop indefinitely. I would say this is a bad design or atleast should be documented.
I am using erlang.mk to generate the release. When I issue the command
bin/server stop
server_app:prep_stop
is called and function returns cleanly. howeverserver_app:stop
never gets called and the stop command hangs indefinitely. Any idea what would be blocking?this is the make file.