aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src/mnesia_sup.erl
diff options
context:
space:
mode:
authorUlf Wiger <[email protected]>2015-11-05 14:38:57 +0100
committerDan Gudmundsson <[email protected]>2016-05-09 14:51:43 +0200
commit22a1b438a34fcdf6d36019981fa303d8a5162500 (patch)
tree13dd28ff7eb6338b16880a0892ea35efce2c878f /lib/mnesia/src/mnesia_sup.erl
parent586e8f0cb587355221ed8a24c4e8ca06e8404192 (diff)
downloadotp-22a1b438a34fcdf6d36019981fa303d8a5162500.tar.gz
otp-22a1b438a34fcdf6d36019981fa303d8a5162500.tar.bz2
otp-22a1b438a34fcdf6d36019981fa303d8a5162500.zip
mnesia_ext: Add supervisor and behaviour modules
Diffstat (limited to 'lib/mnesia/src/mnesia_sup.erl')
-rw-r--r--lib/mnesia/src/mnesia_sup.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/mnesia/src/mnesia_sup.erl b/lib/mnesia/src/mnesia_sup.erl
index 3a9360aa6d..b8dd4f48a6 100644
--- a/lib/mnesia/src/mnesia_sup.erl
+++ b/lib/mnesia/src/mnesia_sup.erl
@@ -60,9 +60,10 @@ init() ->
Flags = {one_for_all, 0, 3600}, % Should be rest_for_one policy
Event = event_procs(),
+ Ext = ext_procs(),
Kernel = kernel_procs(),
- {ok, {Flags, Event ++ Kernel}}.
+ {ok, {Flags, Event ++ Ext ++ Kernel}}.
event_procs() ->
KillAfter = timer:seconds(30),
@@ -75,6 +76,11 @@ kernel_procs() ->
KA = infinity,
[{K, {K, start, []}, permanent, KA, supervisor, [K, supervisor]}].
+ext_procs() ->
+ K = mnesia_ext_sup,
+ KA = infinity,
+ [{K, {K, start, []}, permanent, KA, supervisor, [K, supervisor]}].
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% event handler