auser-poolparty 0.2.66 → 0.2.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Manifest.txt +83 -41
- data/PostInstall.txt +2 -2
- data/README.txt +1 -2
- data/Rakefile +14 -1
- data/bin/cloud-start +11 -10
- data/bin/{pool-spec → pool-generate} +0 -0
- data/bin/pool-init +3 -3
- data/bin/pool-start +8 -7
- data/bin/server-update-hosts +1 -1
- data/lib/erlang/messenger/ebin/pm_client_rel-0.1.rel +1 -1
- data/lib/erlang/messenger/ebin/pm_master_rel-0.1.rel +1 -1
- data/lib/erlang/messenger/ebin/pm_node_rel-0.1.rel +1 -1
- data/lib/erlang/messenger/include/defines.hrl +7 -3
- data/lib/erlang/messenger/lib/eunit/.svn/all-wcprops +53 -0
- data/lib/erlang/messenger/lib/eunit/.svn/entries +140 -0
- data/lib/erlang/messenger/lib/eunit/.svn/format +1 -0
- data/lib/erlang/messenger/lib/eunit/.svn/prop-base/NOTES.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/AUTHORS.svn-base +2 -0
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/CHANGELOG.svn-base +14 -0
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/COPYING.svn-base +504 -0
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/NOTES.svn-base +276 -0
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/README.svn-base +3 -0
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/sys.config.svn-base +9 -0
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/vsn.mk.svn-base +1 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/all-wcprops +59 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/entries +142 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/format +1 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/erlang.png.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/eunit.html.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/index.html.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/modules-frame.html.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/overview-summary.html.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/packages-frame.html.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/edoc-info.svn-base +3 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/erlang.png.svn-base +0 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/eunit.html.svn-base +172 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/index.html.svn-base +17 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/modules-frame.html.svn-base +12 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/overview-summary.html.svn-base +984 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/overview.edoc.svn-base +980 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/packages-frame.html.svn-base +11 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/stylesheet.css.svn-base +55 -0
- data/lib/erlang/messenger/lib/eunit/ebin/.svn/all-wcprops +5 -0
- data/lib/erlang/messenger/lib/eunit/ebin/.svn/dir-prop-base +8 -0
- data/lib/erlang/messenger/lib/eunit/ebin/.svn/entries +28 -0
- data/lib/erlang/messenger/lib/eunit/ebin/.svn/format +1 -0
- data/lib/erlang/messenger/lib/eunit/examples/.svn/all-wcprops +23 -0
- data/lib/erlang/messenger/lib/eunit/examples/.svn/entries +66 -0
- data/lib/erlang/messenger/lib/eunit/examples/.svn/format +1 -0
- data/lib/erlang/messenger/lib/eunit/examples/.svn/prop-base/eunit_examples.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/examples/.svn/prop-base/fib.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/examples/.svn/text-base/eunit_examples.erl.svn-base +339 -0
- data/lib/erlang/messenger/lib/eunit/examples/.svn/text-base/fib.erl.svn-base +19 -0
- data/lib/erlang/messenger/lib/eunit/examples/.svn/text-base/tests.txt.svn-base +1 -0
- data/lib/erlang/messenger/lib/eunit/include/.svn/all-wcprops +11 -0
- data/lib/erlang/messenger/lib/eunit/include/.svn/entries +41 -0
- data/lib/erlang/messenger/lib/eunit/include/.svn/format +1 -0
- data/lib/erlang/messenger/lib/eunit/include/.svn/prop-base/eunit.hrl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/include/.svn/text-base/eunit.hrl.svn-base +313 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/all-wcprops +113 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/entries +259 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/format +1 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/autoload.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/code_monitor.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_autoexport.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_data.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_internal.hrl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_lib.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_proc.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_serial.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_server.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_striptests.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_test.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_tests.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_tty.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/file_monitor.erl.svn-base +5 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/autoload.erl.svn-base +388 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/code_monitor.erl.svn-base +243 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.app.src.svn-base +21 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.appup.src.svn-base +1 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.erl.svn-base +196 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_autoexport.erl.svn-base +102 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_data.erl.svn-base +798 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_internal.hrl.svn-base +48 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_lib.erl.svn-base +682 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_proc.erl.svn-base +552 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_serial.erl.svn-base +157 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_server.erl.svn-base +340 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_striptests.erl.svn-base +64 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_test.erl.svn-base +334 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_tests.erl.svn-base +45 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_tty.erl.svn-base +272 -0
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/file_monitor.erl.svn-base +409 -0
- data/lib/erlang/messenger/pm_client_rel-0.1.boot +0 -0
- data/lib/erlang/messenger/pm_client_rel-0.1.script +77 -85
- data/lib/erlang/messenger/pm_master_rel-0.1.boot +0 -0
- data/lib/erlang/messenger/pm_master_rel-0.1.script +78 -85
- data/lib/erlang/messenger/pm_node_rel-0.1.boot +0 -0
- data/lib/erlang/messenger/pm_node_rel-0.1.script +77 -86
- data/lib/erlang/messenger/src/pm_node.erl +46 -9
- data/lib/erlang/messenger/src/utils.erl +7 -1
- data/lib/poolparty.rb +17 -23
- data/lib/poolparty/base_packages/poolparty.rb +1 -1
- data/lib/poolparty/core/string.rb +11 -2
- data/lib/poolparty/helpers/binary.rb +31 -0
- data/lib/poolparty/helpers/console.rb +25 -16
- data/lib/poolparty/helpers/nice_printer.rb +36 -0
- data/lib/poolparty/helpers/optioner.rb +8 -0
- data/lib/poolparty/helpers/provisioner_base.rb +7 -5
- data/lib/poolparty/helpers/provisioners/master.rb +1 -1
- data/lib/poolparty/helpers/provisioners/slave.rb +2 -1
- data/lib/poolparty/modules/cloud_resourcer.rb +1 -1
- data/lib/poolparty/modules/file_writer.rb +12 -1
- data/lib/poolparty/modules/resourcing_dsl.rb +2 -1
- data/lib/poolparty/monitors/base_monitor.rb +3 -0
- data/lib/poolparty/net/remoter.rb +13 -11
- data/lib/poolparty/pool/base.rb +25 -13
- data/lib/poolparty/pool/cloud.rb +32 -10
- data/lib/poolparty/pool/custom_resource.rb +16 -7
- data/lib/poolparty/pool/plugin_model.rb +2 -2
- data/lib/poolparty/pool/pool.rb +2 -2
- data/lib/poolparty/pool/resource.rb +25 -7
- data/lib/poolparty/pool/resources/class_package.rb +3 -2
- data/lib/poolparty/pool/resources/exec.rb +1 -1
- data/lib/poolparty/pool/resources/variable.rb +4 -0
- data/lib/poolparty/version.rb +1 -1
- data/poolparty.gemspec +13 -11
- data/spec/poolparty/core/hash_spec.rb +1 -1
- data/spec/poolparty/core/time_spec.rb +1 -1
- data/spec/poolparty/net/remote_spec.rb +1 -1
- data/spec/poolparty/pool/base_spec.rb +25 -20
- data/spec/poolparty/pool/cloud_spec.rb +50 -3
- data/spec/poolparty/pool/plugin_spec.rb +1 -0
- data/spec/poolparty/pool/resource_spec.rb +4 -3
- data/spec/poolparty/spec_helper.rb +3 -4
- data/tasks/deployment.rake +15 -3
- data/website/index.html +2 -2
- metadata +88 -46
- data/lib/erlang/messenger/Makefile +0 -15
- data/lib/erlang/messenger/lib/eunit/Makefile +0 -28
- data/lib/erlang/messenger/lib/eunit/ebin/autoload.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/code_monitor.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_autoexport.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_data.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_lib.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_proc.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_serial.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_server.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_striptests.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_test.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_tests.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_tty.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/file_monitor.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/src/Makefile +0 -46
- data/lib/poolparty/config/allowed_commands.yml +0 -1
- data/lib/poolparty/plugins/git.rb +0 -45
- data/spec/poolparty/plugins/git_spec.rb +0 -40
@@ -0,0 +1,409 @@
|
|
1
|
+
%% This library is free software; you can redistribute it and/or modify
|
2
|
+
%% it under the terms of the GNU Lesser General Public License as
|
3
|
+
%% published by the Free Software Foundation; either version 2 of the
|
4
|
+
%% License, or (at your option) any later version.
|
5
|
+
%%
|
6
|
+
%% This library is distributed in the hope that it will be useful, but
|
7
|
+
%% WITHOUT ANY WARRANTY; without even the implied warranty of
|
8
|
+
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
9
|
+
%% Lesser General Public License for more details.
|
10
|
+
%%
|
11
|
+
%% You should have received a copy of the GNU Lesser General Public
|
12
|
+
%% License along with this library; if not, write to the Free Software
|
13
|
+
%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
14
|
+
%% USA
|
15
|
+
%%
|
16
|
+
%% $Id$
|
17
|
+
%%
|
18
|
+
%% @private (for now)
|
19
|
+
%% @author Richard Carlsson <richardc@it.uu.se>
|
20
|
+
%% @copyright 2006 Richard Carlsson
|
21
|
+
%% @doc Erlang file monitoring service
|
22
|
+
|
23
|
+
%% The behaviour of this service is inspired by the open source FAM
|
24
|
+
%% daemon [http://oss.sgi.com/projects/fam/].
|
25
|
+
|
26
|
+
-module(file_monitor).
|
27
|
+
|
28
|
+
-export([start/0, start/1, start/2, stop/0, stop/1, monitor_file/2,
|
29
|
+
monitor_file/3, monitor_dir/2, monitor_dir/3, demonitor/1,
|
30
|
+
demonitor/2]).
|
31
|
+
|
32
|
+
-export([main/1]). %% private
|
33
|
+
|
34
|
+
-include_lib("kernel/include/file.hrl").
|
35
|
+
|
36
|
+
-define(POLL_TIME, 5000). % default; change with option poll_time
|
37
|
+
-define(SERVER, file_monitor).
|
38
|
+
|
39
|
+
%% NOTE: paths should be absolute, but this is not checked
|
40
|
+
|
41
|
+
%% We don't change the paths, e.g. from relative to absolute, but we
|
42
|
+
%% make sure that the path is a flat string and return it to the caller.
|
43
|
+
|
44
|
+
monitor_file(Path, Pid) ->
|
45
|
+
monitor_file(?SERVER, Path, Pid).
|
46
|
+
|
47
|
+
monitor_file(Server, Path, Pid) ->
|
48
|
+
monitor(Server, file, filename:flatten(Path), Pid).
|
49
|
+
|
50
|
+
monitor_dir(Path, Pid) ->
|
51
|
+
monitor_dir(?SERVER, Path, Pid).
|
52
|
+
|
53
|
+
monitor_dir(Server, Path, Pid) ->
|
54
|
+
monitor(Server, dir, filename:flatten(Path), Pid).
|
55
|
+
|
56
|
+
monitor(Server, Type, Path, Pid) when is_pid(Pid) ->
|
57
|
+
{ok, Ref} = command(Server, {monitor, {Type, Path}, Pid}),
|
58
|
+
{ok, Path, Ref}.
|
59
|
+
|
60
|
+
demonitor(Ref) ->
|
61
|
+
demonitor(?SERVER, Ref).
|
62
|
+
|
63
|
+
demonitor(Server, Ref) ->
|
64
|
+
ok = command(Server, {demonitor, Ref}).
|
65
|
+
|
66
|
+
|
67
|
+
command(Server, Cmd) ->
|
68
|
+
ServerPid = ensure_started(Server),
|
69
|
+
ServerPid ! {command, self(), Cmd},
|
70
|
+
receive
|
71
|
+
{ServerPid, Result} -> Result
|
72
|
+
end.
|
73
|
+
|
74
|
+
|
75
|
+
stop() ->
|
76
|
+
stop(?SERVER).
|
77
|
+
|
78
|
+
stop(Server) ->
|
79
|
+
Server ! stop,
|
80
|
+
ok.
|
81
|
+
|
82
|
+
ensure_started(Name) when is_atom(Name) ->
|
83
|
+
start(Name, []);
|
84
|
+
ensure_started(Pid) when is_pid(Pid) ->
|
85
|
+
Pid.
|
86
|
+
|
87
|
+
start() ->
|
88
|
+
start([]).
|
89
|
+
|
90
|
+
start(Options) ->
|
91
|
+
start(?SERVER, Options).
|
92
|
+
|
93
|
+
start(Name, Options) ->
|
94
|
+
case whereis(Name) of
|
95
|
+
undefined ->
|
96
|
+
Parent = self(),
|
97
|
+
Pid = spawn(fun () -> server_init(Name, Parent, Options) end),
|
98
|
+
receive
|
99
|
+
{Pid, ok} -> Pid;
|
100
|
+
{Pid, error} -> throw(no_server)
|
101
|
+
end;
|
102
|
+
Pid -> Pid
|
103
|
+
end.
|
104
|
+
|
105
|
+
-record(state, {name, time, dirs, files, clients, refs}).
|
106
|
+
|
107
|
+
server_init(undefined = Name, Parent, Options) ->
|
108
|
+
%% anonymous server
|
109
|
+
server_init_1(Name, Parent, Options);
|
110
|
+
server_init(Name, Parent, Options) ->
|
111
|
+
case catch register(Name, self()) of
|
112
|
+
true ->
|
113
|
+
server_init_1(Name, Parent, Options);
|
114
|
+
_ ->
|
115
|
+
Parent ! {self(), error},
|
116
|
+
exit(failed)
|
117
|
+
end.
|
118
|
+
|
119
|
+
server_init_1(Name, Parent, Options) ->
|
120
|
+
Parent ! {self(), ok},
|
121
|
+
server(set_timer(init_state(Name, Options))).
|
122
|
+
|
123
|
+
init_state(Name, Options) ->
|
124
|
+
Time = case proplists:get_value(poll_time, Options) of
|
125
|
+
N when is_integer(N), N >= 100 -> N;
|
126
|
+
_ -> ?POLL_TIME
|
127
|
+
end,
|
128
|
+
#state{name = Name,
|
129
|
+
time = Time,
|
130
|
+
dirs = dict:new(),
|
131
|
+
files = dict:new(),
|
132
|
+
clients = dict:new(),
|
133
|
+
refs = dict:new()}.
|
134
|
+
|
135
|
+
server(St) -> ?MODULE:main(St).
|
136
|
+
|
137
|
+
%% @private
|
138
|
+
main(St) ->
|
139
|
+
receive
|
140
|
+
{command, From, {monitor, Object, Pid}} when is_pid(Pid) ->
|
141
|
+
{Ref, St1} = new_monitor(Object, Pid, St),
|
142
|
+
server_reply(From, {ok, Ref}),
|
143
|
+
server(add_client(Pid, St1));
|
144
|
+
{command, From, {demonitor, Ref}} ->
|
145
|
+
server_reply(From, ok),
|
146
|
+
server(delete_monitor(Ref, St));
|
147
|
+
stop ->
|
148
|
+
exit(normal);
|
149
|
+
time ->
|
150
|
+
server(set_timer(poll(St)));
|
151
|
+
{'DOWN', _Ref, process, Pid, _Info} ->
|
152
|
+
server(purge_pid(Pid, del_client(Pid, St)));
|
153
|
+
_ ->
|
154
|
+
server(St)
|
155
|
+
end.
|
156
|
+
|
157
|
+
server_reply(To, Msg) ->
|
158
|
+
To ! {self(), Msg}.
|
159
|
+
|
160
|
+
set_timer(St) ->
|
161
|
+
erlang:send_after(St#state.time, self(), time),
|
162
|
+
St.
|
163
|
+
|
164
|
+
|
165
|
+
%% client monitoring (once a client, always a client - until death)
|
166
|
+
|
167
|
+
add_client(Pid, St) ->
|
168
|
+
case dict:is_key(Pid, St#state.clients) of
|
169
|
+
true ->
|
170
|
+
St;
|
171
|
+
false ->
|
172
|
+
Ref = erlang:monitor(process, Pid),
|
173
|
+
St#state{clients = dict:store(Pid, Ref, St#state.clients)}
|
174
|
+
end.
|
175
|
+
|
176
|
+
del_client(Pid, St) ->
|
177
|
+
case dict:find(Pid, St#state.clients) of
|
178
|
+
{ok, Ref} ->
|
179
|
+
erlang:demonitor(Ref, [flush]),
|
180
|
+
St#state{clients = dict:erase(Pid, St#state.clients)};
|
181
|
+
error ->
|
182
|
+
St
|
183
|
+
end.
|
184
|
+
|
185
|
+
|
186
|
+
-record(monitor, {pid, reference}).
|
187
|
+
|
188
|
+
-record(entry, {info = undefined, files = [], monitors = sets:new()}).
|
189
|
+
|
190
|
+
new_monitor(Object, Pid, St) ->
|
191
|
+
Ref = make_ref(),
|
192
|
+
Monitor = #monitor{pid = Pid, reference = Ref},
|
193
|
+
new_monitor(Object, Monitor, Ref,
|
194
|
+
St#state{refs = dict:store(Ref, {Pid, Object},
|
195
|
+
St#state.refs)}).
|
196
|
+
|
197
|
+
%% We must separate the namespaces for files and dirs, since we can't
|
198
|
+
%% trust the users to keep them distinct; there may be simultaneous file
|
199
|
+
%% and dir monitors for the same path.
|
200
|
+
|
201
|
+
new_monitor({file, Path}, Monitor, Ref, St) ->
|
202
|
+
{Ref, St#state{files = add_monitor(Path, Monitor, file,
|
203
|
+
St#state.files)}};
|
204
|
+
new_monitor({dir, Path}, Monitor, Ref, St) ->
|
205
|
+
{Ref, St#state{dirs = add_monitor(Path, Monitor, dir,
|
206
|
+
St#state.dirs)}}.
|
207
|
+
|
208
|
+
%% Adding a new monitor forces an immediate poll of the file, such that
|
209
|
+
%% previous monitors only see any real change, while the new monitor
|
210
|
+
%% either gets {exists, ...} or {error, ...}.
|
211
|
+
|
212
|
+
add_monitor(Path, Monitor, Type, Dict) ->
|
213
|
+
Entry = case dict:find(Path, Dict) of
|
214
|
+
{ok, OldEntry} -> poll_file(Path, OldEntry, Type);
|
215
|
+
error -> new_entry(Path, Type)
|
216
|
+
end,
|
217
|
+
event(#entry{}, dummy_entry(Entry, Monitor), Type, Path),
|
218
|
+
NewEntry = Entry#entry{monitors =
|
219
|
+
sets:add_element(Monitor,
|
220
|
+
Entry#entry.monitors)},
|
221
|
+
dict:store(Path, NewEntry, Dict).
|
222
|
+
|
223
|
+
dummy_entry(Entry, Monitor) ->
|
224
|
+
Entry#entry{monitors = sets:add_element(Monitor, sets:new())}.
|
225
|
+
|
226
|
+
new_entry(Path, Type) ->
|
227
|
+
refresh_entry(Path, #entry{monitors = sets:new()}, Type).
|
228
|
+
|
229
|
+
%% deleting a monitor by reference
|
230
|
+
|
231
|
+
delete_monitor(Ref, St) ->
|
232
|
+
case dict:find(Ref, St#state.refs) of
|
233
|
+
{ok, {_Pid, Object}} ->
|
234
|
+
St1 = St#state{refs = dict:erase(Ref, St#state.refs)},
|
235
|
+
delete_monitor_1(Ref, Object, St1);
|
236
|
+
error ->
|
237
|
+
St
|
238
|
+
end.
|
239
|
+
|
240
|
+
delete_monitor_1(Ref, {file, Path}, St) ->
|
241
|
+
St#state{files = delete_monitor_2(Path, Ref, St#state.files)};
|
242
|
+
delete_monitor_1(Ref, {dir, Path}, St) ->
|
243
|
+
St#state{dirs = delete_monitor_2(Path, Ref, St#state.dirs)}.
|
244
|
+
|
245
|
+
delete_monitor_2(Path, Ref, Dict) ->
|
246
|
+
case dict:find(Path, Dict) of
|
247
|
+
{ok, Entry} ->
|
248
|
+
purge_empty_sets(
|
249
|
+
dict:store(Path, purge_monitor_ref(Ref, Entry), Dict));
|
250
|
+
error ->
|
251
|
+
Dict
|
252
|
+
end.
|
253
|
+
|
254
|
+
purge_monitor_ref(Ref, Entry) ->
|
255
|
+
Entry#entry{monitors =
|
256
|
+
sets:filter(fun (#monitor{reference = R})
|
257
|
+
when R == Ref -> false;
|
258
|
+
(_) -> true
|
259
|
+
end,
|
260
|
+
Entry#entry.monitors)}.
|
261
|
+
|
262
|
+
%% purging monitors belonging to dead clients
|
263
|
+
|
264
|
+
purge_pid(Pid, St) ->
|
265
|
+
Files = dict:map(fun (_Path, Entry) ->
|
266
|
+
purge_monitor_pid(Pid, Entry)
|
267
|
+
end,
|
268
|
+
St#state.files),
|
269
|
+
Dirs = dict:map(fun (_Path, Entry) ->
|
270
|
+
purge_monitor_pid(Pid, Entry)
|
271
|
+
end,
|
272
|
+
St#state.dirs),
|
273
|
+
Refs = dict:filter(fun (_Ref, {P, _})
|
274
|
+
when P == Pid -> false;
|
275
|
+
(_, _) -> true
|
276
|
+
end,
|
277
|
+
St#state.refs),
|
278
|
+
St#state{refs = Refs,
|
279
|
+
files = purge_empty_sets(Files),
|
280
|
+
dirs = purge_empty_sets(Dirs)}.
|
281
|
+
|
282
|
+
purge_monitor_pid(Pid, Entry) ->
|
283
|
+
Entry#entry{monitors =
|
284
|
+
sets:filter(fun (#monitor{pid = P})
|
285
|
+
when P == Pid -> false;
|
286
|
+
(_) -> true
|
287
|
+
end,
|
288
|
+
Entry#entry.monitors)}.
|
289
|
+
|
290
|
+
purge_empty_sets(Dict) ->
|
291
|
+
dict:filter(fun (_Path, Entry) ->
|
292
|
+
sets:size(Entry#entry.monitors) > 0
|
293
|
+
end, Dict).
|
294
|
+
|
295
|
+
|
296
|
+
%% generating events upon state changes
|
297
|
+
|
298
|
+
%% Message formats:
|
299
|
+
%% {exists, Path, Type, #file_info{}, Files}
|
300
|
+
%% {changed, Path, Type, #file_info{}, Files}
|
301
|
+
%% {error, Path, Type, Info}
|
302
|
+
%%
|
303
|
+
%% Type is dir or file. If Type is file, Files is always []. If Type is
|
304
|
+
%% dir, Files is a list of {added, FileName} and {deleted, FileName},
|
305
|
+
%% where FileName is relative to dir, without any path component.
|
306
|
+
%%
|
307
|
+
%% When a new monitor is installed for a path, an initial {exists,...}
|
308
|
+
%% or {error,...} message will be sent to the monitor owner.
|
309
|
+
%%
|
310
|
+
%% Subsequent events will be either {changed,...} or {error,...}.
|
311
|
+
|
312
|
+
event(#entry{info = Info}, #entry{info = Info}, _Type, _Path) ->
|
313
|
+
%% no change in state
|
314
|
+
ok;
|
315
|
+
event(#entry{info = undefined}, #entry{info = NewInfo}=Entry,
|
316
|
+
Type, Path)
|
317
|
+
when not is_atom(NewInfo) ->
|
318
|
+
%% file or directory exists, for a fresh monitor
|
319
|
+
Files = [{added, F} || F <- Entry#entry.files],
|
320
|
+
cast({exists, Path, Type, NewInfo, Files}, Entry#entry.monitors);
|
321
|
+
event(_OldEntry, #entry{info = NewInfo}=Entry, Type, Path)
|
322
|
+
when is_atom(NewInfo) ->
|
323
|
+
%% file is not available
|
324
|
+
cast({error, Path, Type, NewInfo}, Entry#entry.monitors);
|
325
|
+
event(_OldEntry, Entry, file, Path) ->
|
326
|
+
%% a normal file has changed
|
327
|
+
cast({changed, Path, file, Entry#entry.info, []},
|
328
|
+
Entry#entry.monitors);
|
329
|
+
event(#entry{info = OldInfo}, #entry{info = NewInfo}=Entry, dir, Path)
|
330
|
+
when is_atom(OldInfo) ->
|
331
|
+
%% a directory has suddenly become available
|
332
|
+
Files = [{added, F} || F <- Entry#entry.files],
|
333
|
+
cast({changed, Path, dir, NewInfo, Files}, Entry#entry.monitors);
|
334
|
+
event(OldEntry, #entry{info = NewInfo}=Entry, dir, Path) ->
|
335
|
+
%% a directory has changed
|
336
|
+
Files = diff_lists(Entry#entry.files, OldEntry#entry.files),
|
337
|
+
cast({changed, Path, dir, NewInfo, Files}, Entry#entry.monitors).
|
338
|
+
|
339
|
+
|
340
|
+
poll(St) ->
|
341
|
+
St#state{files = dict:map(fun (Path, Entry) ->
|
342
|
+
poll_file(Path, Entry, file)
|
343
|
+
end,
|
344
|
+
St#state.files),
|
345
|
+
dirs = dict:map(fun (Path, Entry) ->
|
346
|
+
poll_file(Path, Entry, dir)
|
347
|
+
end,
|
348
|
+
St#state.dirs)}.
|
349
|
+
|
350
|
+
poll_file(Path, Entry, Type) ->
|
351
|
+
NewEntry = refresh_entry(Path, Entry, Type),
|
352
|
+
event(Entry, NewEntry, Type, Path),
|
353
|
+
NewEntry.
|
354
|
+
|
355
|
+
refresh_entry(Path, Entry, Type) ->
|
356
|
+
Info = get_file_info(Path),
|
357
|
+
Files = case Type of
|
358
|
+
dir when not is_atom(Info) -> get_dir_files(Path);
|
359
|
+
_ -> []
|
360
|
+
end,
|
361
|
+
Entry#entry{info = Info, files = Files}.
|
362
|
+
|
363
|
+
|
364
|
+
%% We clear some fields of the file_info so that we only trigger on real
|
365
|
+
%% changes; see the //kernel/file.erl manual and file.hrl for details.
|
366
|
+
|
367
|
+
get_file_info(Path) ->
|
368
|
+
case file:read_file_info(Path) of
|
369
|
+
{ok, Info} ->
|
370
|
+
Info#file_info{access = undefined,
|
371
|
+
atime = undefined};
|
372
|
+
{error, Error} ->
|
373
|
+
Error % posix error code as atom
|
374
|
+
end.
|
375
|
+
|
376
|
+
%% Listing the members of a directory; note that it yields the empty
|
377
|
+
%% list if it fails - this is not the place for error detection.
|
378
|
+
|
379
|
+
get_dir_files(Path) ->
|
380
|
+
case file:list_dir(Path) of
|
381
|
+
{ok, Files} -> lists:sort(Files);
|
382
|
+
{error, _} -> []
|
383
|
+
end.
|
384
|
+
|
385
|
+
%% both lists must be sorted for this diff to work
|
386
|
+
|
387
|
+
diff_lists([F1 | Fs1], [F2 | _]=Fs2) when F1 < F2 ->
|
388
|
+
[{added, F1} | diff_lists(Fs1, Fs2)];
|
389
|
+
diff_lists([F1 | _]=Fs1, [F2 | Fs2]) when F1 > F2 ->
|
390
|
+
[{deleted, F2} | diff_lists(Fs1, Fs2)];
|
391
|
+
diff_lists([_ | Fs1], [_ | Fs2]) ->
|
392
|
+
diff_lists(Fs1, Fs2);
|
393
|
+
diff_lists([F | Fs1], Fs2) ->
|
394
|
+
[{added, F} | diff_lists(Fs1, Fs2)];
|
395
|
+
diff_lists(Fs1, [F | Fs2]) ->
|
396
|
+
[{deleted, F} | diff_lists(Fs1, Fs2)];
|
397
|
+
diff_lists([], []) ->
|
398
|
+
[].
|
399
|
+
|
400
|
+
|
401
|
+
%% Multicasting events to clients
|
402
|
+
|
403
|
+
cast(Msg, Monitors) ->
|
404
|
+
sets:fold(fun (#monitor{pid = Pid, reference = Ref}, Msg) ->
|
405
|
+
%%erlang:display({file_monitor, Ref, Msg}),
|
406
|
+
Pid ! {file_monitor, Ref, Msg},
|
407
|
+
Msg % note that this is a fold, not a map
|
408
|
+
end,
|
409
|
+
Msg, Monitors).
|
Binary file
|
@@ -1,106 +1,98 @@
|
|
1
|
-
%% script generated at {2008,11,
|
1
|
+
%% script generated at {2008,11,23} {3,48,11}
|
2
2
|
{script,
|
3
3
|
{"client","0.1"},
|
4
|
-
[{preLoaded,
|
5
|
-
[erlang,erl_prim_loader,prim_file,prim_inet,init,otp_ring0]},
|
4
|
+
[{preLoaded,[erlang,erl_prim_loader,prim_file,prim_inet,init,otp_ring0]},
|
6
5
|
{progress,preloaded},
|
7
6
|
{path,
|
8
|
-
["/opt/local/lib/erlang/lib/kernel-2.12.
|
9
|
-
"/opt/local/lib/erlang/lib/stdlib-1.15.
|
7
|
+
["/opt/local/lib/erlang/lib/kernel-2.12.5/ebin",
|
8
|
+
"/opt/local/lib/erlang/lib/stdlib-1.15.5/ebin"]},
|
10
9
|
{primLoad,[error_handler]},
|
11
10
|
{kernel_load_completed},
|
12
11
|
{progress,kernel_load_completed},
|
13
|
-
{path,["/opt/local/lib/erlang/lib/kernel-2.12.
|
12
|
+
{path,["/opt/local/lib/erlang/lib/kernel-2.12.5/ebin"]},
|
14
13
|
{primLoad,
|
15
|
-
[zlib,wrap_log_reader,user_sup,user_drv,user,seq_trace,rpc,
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
gen_sctp,file_server,file_io_server,file,erts_debug,
|
14
|
+
[zlib,wrap_log_reader,user_sup,user_drv,user,seq_trace,rpc,ram_file,
|
15
|
+
prim_zip,pg2,packages,os,net_kernel,net_adm,net,kernel_config,
|
16
|
+
kernel,inet_udp,inet_tcp_dist,inet_tcp,inet_sctp,inet_res,
|
17
|
+
inet_parse,inet_hosts,inet_gethost_native,inet_dns,inet_db,
|
18
|
+
inet_config,inet6_udp,inet6_tcp_dist,inet6_tcp,inet,
|
19
|
+
hipe_unified_loader,heart,group,global_search,global_group,global,
|
20
|
+
gen_udp,gen_tcp,gen_sctp,file_server,file_io_server,file,erts_debug,
|
23
21
|
error_logger,erl_reply,erl_epmd,erl_distribution,erl_ddll,
|
24
|
-
erl_boot_server,dist_util,dist_ac,disk_log_sup,
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
{path,["/opt/local/lib/erlang/lib/stdlib-1.15.2/ebin"]},
|
22
|
+
erl_boot_server,dist_util,dist_ac,disk_log_sup,disk_log_server,
|
23
|
+
disk_log_1,disk_log,code_server,code,auth,application_starter,
|
24
|
+
application_master,application_controller,application]},
|
25
|
+
{path,["/opt/local/lib/erlang/lib/stdlib-1.15.5/ebin"]},
|
29
26
|
{primLoad,
|
30
|
-
[zip,win32reg,timer,sys,supervisor_bridge,supervisor,string,
|
31
|
-
sofs,slave,shell_default,shell,sets,regexp,random,queue,
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
{path,["/opt/local/lib/erlang/lib/inets-5.0.5/ebin"]},
|
27
|
+
[zip,win32reg,unicode,timer,sys,supervisor_bridge,supervisor,string,
|
28
|
+
sofs,slave,shell_default,shell,sets,regexp,re,random,queue,qlc_pt,
|
29
|
+
qlc,proplists,proc_lib,pool,pg,otp_internal,ordsets,orddict,
|
30
|
+
ms_transform,math,log_mf_h,lists,lib,io_lib_pretty,io_lib_fread,
|
31
|
+
io_lib_format,io_lib,io,gen_server,gen_fsm,gen_event,gen,gb_trees,
|
32
|
+
gb_sets,filename,filelib,file_sorter,eval_bits,ets,escript,
|
33
|
+
error_logger_tty_h,error_logger_file_h,erl_tar,erl_scan,erl_pp,
|
34
|
+
erl_posix_msg,erl_parse,erl_lint,erl_internal,erl_expand_records,
|
35
|
+
erl_eval,erl_compile,erl_bits,epp,edlin_expand,edlin,digraph_utils,
|
36
|
+
digraph,dict,dets_v9,dets_v8,dets_utils,dets_sup,dets_server,dets,
|
37
|
+
calendar,c,beam_lib,base64,array]},
|
38
|
+
{path,["/opt/local/lib/erlang/lib/inets-5.0.12/ebin"]},
|
43
39
|
{primLoad,
|
44
|
-
[tftp_sup,tftp_lib,tftp_file,tftp_engine,tftp_binary,
|
45
|
-
mod_trace,mod_security_server,mod_security,
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
http_cookie,http_chunk,http,ftp_sup,ftp_response,
|
60
|
-
ftp_progress,ftp]},
|
61
|
-
{path,["/opt/local/lib/erlang/lib/crypto-1.5.1.1/ebin"]},
|
40
|
+
[tftp_sup,tftp_logger,tftp_lib,tftp_file,tftp_engine,tftp_binary,
|
41
|
+
tftp,mod_trace,mod_security_server,mod_security,mod_responsecontrol,
|
42
|
+
mod_range,mod_log,mod_include,mod_htaccess,mod_head,mod_get,mod_esi,
|
43
|
+
mod_disk_log,mod_dir,mod_cgi,mod_browser,mod_auth_server,
|
44
|
+
mod_auth_plain,mod_auth_mnesia,mod_auth_dets,mod_auth,mod_alias,
|
45
|
+
mod_actions,inets_sup,inets_service,inets_app,inets,httpd_util,
|
46
|
+
httpd_sup,httpd_socket,httpd_script_env,httpd_response,
|
47
|
+
httpd_request_handler,httpd_request,httpd_misc_sup,httpd_manager,
|
48
|
+
httpd_log,httpd_instance_sup,httpd_file,httpd_example,httpd_esi,
|
49
|
+
httpd_conf,httpd_cgi,httpd_acceptor_sup,httpd_acceptor,httpd,
|
50
|
+
httpc_sup,httpc_response,httpc_request,httpc_profile_sup,
|
51
|
+
httpc_manager,httpc_handler_sup,httpc_handler,http_util,http_uri,
|
52
|
+
http_transport,http_response,http_request,http_cookie,http_chunk,
|
53
|
+
http,ftp_sup,ftp_response,ftp_progress,ftp]},
|
54
|
+
{path,["/opt/local/lib/erlang/lib/crypto-1.5.3/ebin"]},
|
62
55
|
{primLoad,[crypto_sup,crypto_server,crypto_app,crypto]},
|
63
|
-
{path,["/opt/local/lib/erlang/lib/sasl-2.1.5.
|
56
|
+
{path,["/opt/local/lib/erlang/lib/sasl-2.1.5.4/ebin"]},
|
64
57
|
{primLoad,
|
65
|
-
[systools_relup,systools_rc,systools_make,systools_lib,
|
66
|
-
|
67
|
-
|
68
|
-
|
58
|
+
[systools_relup,systools_rc,systools_make,systools_lib,systools,
|
59
|
+
sasl_report_tty_h,sasl_report_file_h,sasl_report,sasl,
|
60
|
+
release_handler_1,release_handler,rb_format_supp,rb,overload,
|
61
|
+
misc_supp,format_lib_supp,erlsrv,alarm_handler]},
|
69
62
|
{path,
|
70
|
-
["/Users/
|
63
|
+
["/Users/petegolibersuch/Development/ruby/poolparty/lib/erlang/messenger/ebin"]},
|
71
64
|
{primLoad,
|
72
|
-
[utils,pm_client_supervisor,pm_client,client_server,
|
73
|
-
client_app]},
|
65
|
+
[utils,pm_client_supervisor,pm_client,client_server,client_app]},
|
74
66
|
{progress,modules_loaded},
|
75
67
|
{path,
|
76
|
-
["/opt/local/lib/erlang/lib/kernel-2.12.
|
77
|
-
"/opt/local/lib/erlang/lib/stdlib-1.15.
|
78
|
-
"/opt/local/lib/erlang/lib/inets-5.0.
|
79
|
-
"/opt/local/lib/erlang/lib/crypto-1.5.
|
80
|
-
"/opt/local/lib/erlang/lib/sasl-2.1.5.
|
81
|
-
"/Users/
|
68
|
+
["/opt/local/lib/erlang/lib/kernel-2.12.5/ebin",
|
69
|
+
"/opt/local/lib/erlang/lib/stdlib-1.15.5/ebin",
|
70
|
+
"/opt/local/lib/erlang/lib/inets-5.0.12/ebin",
|
71
|
+
"/opt/local/lib/erlang/lib/crypto-1.5.3/ebin",
|
72
|
+
"/opt/local/lib/erlang/lib/sasl-2.1.5.4/ebin",
|
73
|
+
"/Users/petegolibersuch/Development/ruby/poolparty/lib/erlang/messenger/ebin"]},
|
82
74
|
{kernelProcess,heart,{heart,start,[]}},
|
83
75
|
{kernelProcess,error_logger,{error_logger,start_link,[]}},
|
84
76
|
{kernelProcess,application_controller,
|
85
77
|
{application_controller,start,
|
86
78
|
[{application,kernel,
|
87
79
|
[{description,"ERTS CXC 138 10"},
|
88
|
-
{vsn,"2.12.
|
80
|
+
{vsn,"2.12.5"},
|
89
81
|
{id,[]},
|
90
82
|
{modules,
|
91
83
|
[application,application_controller,application_master,
|
92
|
-
application_starter,auth,code,
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
84
|
+
application_starter,auth,code,packages,code_server,
|
85
|
+
dist_util,erl_boot_server,erl_distribution,
|
86
|
+
erl_prim_loader,erl_reply,erlang,error_handler,
|
87
|
+
error_logger,file,file_server,file_io_server,
|
88
|
+
prim_file,prim_zip,global,global_group,global_search,
|
89
|
+
group,heart,hipe_unified_loader,inet6_tcp,
|
90
|
+
inet6_tcp_dist,inet6_udp,inet_config,inet_hosts,
|
91
|
+
inet_gethost_native,inet_tcp_dist,init,kernel,
|
92
|
+
kernel_config,net,net_adm,net_kernel,os,ram_file,rpc,
|
93
|
+
user,user_drv,user_sup,disk_log,disk_log_1,
|
94
|
+
disk_log_server,disk_log_sup,dist_ac,erl_ddll,
|
95
|
+
erl_epmd,erts_debug,gen_tcp,gen_udp,gen_sctp,
|
104
96
|
prim_inet,inet,inet_db,inet_dns,inet_parse,inet_res,
|
105
97
|
inet_tcp,inet_udp,inet_sctp,pg2,seq_trace,
|
106
98
|
wrap_log_reader,zlib,otp_ring0]},
|
@@ -123,7 +115,7 @@
|
|
123
115
|
{application,load,
|
124
116
|
[{application,stdlib,
|
125
117
|
[{description,"ERTS CXC 138 10"},
|
126
|
-
{vsn,"1.15.
|
118
|
+
{vsn,"1.15.5"},
|
127
119
|
{id,[]},
|
128
120
|
{modules,
|
129
121
|
[array,base64,beam_lib,c,calendar,dets,dets_server,
|
@@ -137,9 +129,9 @@
|
|
137
129
|
gen_server,io,io_lib,io_lib_format,io_lib_fread,
|
138
130
|
io_lib_pretty,lib,lists,log_mf_h,math,ms_transform,
|
139
131
|
orddict,ordsets,otp_internal,pg,pool,proc_lib,
|
140
|
-
proplists,qlc,qlc_pt,queue,random,regexp,sets,
|
141
|
-
shell_default,slave,sofs,string,supervisor,
|
142
|
-
supervisor_bridge,sys,timer,win32reg,zip]},
|
132
|
+
proplists,qlc,qlc_pt,queue,random,re,regexp,sets,
|
133
|
+
shell,shell_default,slave,sofs,string,supervisor,
|
134
|
+
supervisor_bridge,sys,timer,unicode,win32reg,zip]},
|
143
135
|
{registered,
|
144
136
|
[timer_server,rsh_starter,take_over_monitor,
|
145
137
|
pool_master,dets]},
|
@@ -153,7 +145,7 @@
|
|
153
145
|
{application,load,
|
154
146
|
[{application,inets,
|
155
147
|
[{description,"INETS CXC 138 49"},
|
156
|
-
{vsn,"5.0.
|
148
|
+
{vsn,"5.0.12"},
|
157
149
|
{id,[]},
|
158
150
|
{modules,
|
159
151
|
[inets,inets_sup,inets_app,inets_service,ftp,
|
@@ -173,7 +165,7 @@
|
|
173
165
|
mod_htaccess,mod_include,mod_log,mod_range,
|
174
166
|
mod_responsecontrol,mod_security,mod_security_server,
|
175
167
|
mod_trace,tftp,tftp_binary,tftp_engine,tftp_file,
|
176
|
-
tftp_lib,tftp_sup]},
|
168
|
+
tftp_lib,tftp_logger,tftp_sup]},
|
177
169
|
{registered,[inets_sup,httpc_manager]},
|
178
170
|
{applications,[kernel,stdlib]},
|
179
171
|
{included_applications,[]},
|
@@ -186,7 +178,7 @@
|
|
186
178
|
{application,load,
|
187
179
|
[{application,crypto,
|
188
180
|
[{description,"CRYPTO version 1"},
|
189
|
-
{vsn,"1.5.
|
181
|
+
{vsn,"1.5.3"},
|
190
182
|
{id,[]},
|
191
183
|
{modules,[crypto,crypto_app,crypto_sup,crypto_server]},
|
192
184
|
{registered,[crypto_sup,crypto_server]},
|
@@ -201,7 +193,7 @@
|
|
201
193
|
{application,load,
|
202
194
|
[{application,sasl,
|
203
195
|
[{description,"SASL CXC 138 11"},
|
204
|
-
{vsn,"2.1.5.
|
196
|
+
{vsn,"2.1.5.4"},
|
205
197
|
{id,[]},
|
206
198
|
{modules,
|
207
199
|
[sasl,alarm_handler,format_lib_supp,misc_supp,overload,
|