我注意到牛仔https://github.com/extend/cowboy中有如下代码
supervisor:start_child(cowboy_sup, child_spec(Ref, NbAcceptors,
Transport, TransOpts, Protocol, ProtoOpts)).
child_spec(Ref, NbAcceptors, Transport, TransOpts, Protocol, ProtoOpts) ->
{{cowboy_listener_sup, Ref}, {cowboy_listener_sup, start_link, [ NbAcceptors, Transport,
TransOpts, Protocol, ProtoOpts ]}, permanent, 5000, supervisor,[cowboy_listener_sup]}.
http://www.erlang.org/doc/man/supervisor.html#start_child-2
我不认为这是正确的儿童规格,你怎么看?