diff options
author | Steven Gravell <[email protected]> | 2011-10-28 16:31:29 +0100 |
---|---|---|
committer | Steven Gravell <[email protected]> | 2011-10-28 16:44:46 +0100 |
commit | 1af77d45e3452130742bde5be1c5271bfd80cfbf (patch) | |
tree | fd81bf79c0eff2fd31f7c2d30ee20ab8f185dcc6 /src/cowboy_acceptors_sup.erl | |
parent | 4cd825923f6045500841715413b46efc2ca26d82 (diff) | |
download | cowboy-1af77d45e3452130742bde5be1c5271bfd80cfbf.tar.gz cowboy-1af77d45e3452130742bde5be1c5271bfd80cfbf.tar.bz2 cowboy-1af77d45e3452130742bde5be1c5271bfd80cfbf.zip |
fix supervisor spec for non dynamic modules
a release upgrade on a vm running cowboy where any other appup
includes an {update, Mod, {advanced, Extra}} instruction will hang
forever due to these child specs being wrong.
The gen_servers should be [Mod] and the non gen_server needs to be []
since there is no callback to handle this.
Diffstat (limited to 'src/cowboy_acceptors_sup.erl')
-rw-r--r-- | src/cowboy_acceptors_sup.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_acceptors_sup.erl b/src/cowboy_acceptors_sup.erl index 3d57610..17849a6 100644 --- a/src/cowboy_acceptors_sup.erl +++ b/src/cowboy_acceptors_sup.erl @@ -38,6 +38,6 @@ init([NbAcceptors, Transport, TransOpts, Procs = [{{acceptor, self(), N}, {cowboy_acceptor, start_link, [ LSocket, Transport, Protocol, ProtoOpts, MaxConns, ListenerPid, ReqsPid - ]}, permanent, brutal_kill, worker, dynamic} + ]}, permanent, brutal_kill, worker, []} || N <- lists:seq(1, NbAcceptors)], {ok, {{one_for_one, 10, 10}, Procs}}. |