~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/inets/src/http_client/httpc_profile_sup.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-08-05 20:54:29 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090805205429-pm4pnwew8axraosl
Tags: 1:13.b.1-dfsg-5
* Fixed parentheses in Emacs mode (closes: #536891).
* Removed unnecessary conflicts with erlang-manpages package.
* Added workaround for #475459: disabled threads on sparc architecture.
  This breaks wxErlang, so it's only a temporary solution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    end.
64
64
 
65
65
id(Profile) ->
 
66
    DefaultProfile = http:default_profile(),
66
67
    case Profile of
67
 
        default ->
 
68
        DefaultProfile ->
68
69
            httpc_manager;
69
70
        _ ->
70
71
            {http, Profile}
71
72
    end.
72
73
 
 
74
 
73
75
%%%=========================================================================
74
76
%%%  Supervisor callback
75
77
%%%=========================================================================
94
96
    Spec = httpc_child_spec(Profile, Dir),
95
97
    child_spec(Rest, [Spec | Acc]).
96
98
 
97
 
httpc_child_spec(default, Dir) ->
98
 
    Name = httpc_manager,  
99
 
    StartFunc = {httpc_manager, start_link, [{default, Dir}]},
100
 
    Restart = permanent, 
101
 
    Shutdown = 4000,
102
 
    Modules = [httpc_manager],
103
 
    Type = worker,
104
 
    {Name, StartFunc, Restart, Shutdown, Type, Modules};
105
 
 
106
99
httpc_child_spec(Profile, Dir) ->
107
 
    Name = {http, Profile},
 
100
    Name = id(Profile),
108
101
    StartFunc = {httpc_manager, start_link, [{Profile, Dir}]},
109
102
    Restart = permanent, 
110
103
    Shutdown = 4000,
111
104
    Modules = [httpc_manager],
112
105
    Type = worker,
113
106
    {Name, StartFunc, Restart, Shutdown, Type, Modules}.
 
107