[erlang-questions] Cowboy and fake supervisor

Luis Rascão luis.rascao@REDACTED
Wed Apr 29 00:19:31 CEST 2015


Hi all,
As many of you are familiar with Cowboy there is this practice of
using a 'fake' supervisor and returning it's pid in the start/2 callback of
your application behaviour, this can be seen in all cowboy examples at
https://github.com/ninenines/cowboy/tree/master/examples,
why is this supervisor really necessary?

I've tried several things and on most of them the node just hangs when
requesting a stop, however it exits successfully if i return {ok, self()} on
start/2, i'm also unable to explain this behaviour.
Can anyone shed some light in this matter?
Thanks!

Luis Rascão
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150428/1a16de26/attachment.htm>


More information about the erlang-questions mailing list