aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/kernel.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-10-21 14:31:33 +0200
committerBjörn Gustavsson <[email protected]>2010-10-21 14:31:33 +0200
commit4bf6acc06b5a6b155caebbf575ce524a0fedd75a (patch)
tree542afae453222edf944a644cc70c904da0ecf30b /lib/kernel/src/kernel.erl
parent5fcb6e185734a42ff8236a1ee2626b0adfc3c65e (diff)
parent1419cda9991775c51a931ef63a51da477391722c (diff)
downloadotp-4bf6acc06b5a6b155caebbf575ce524a0fedd75a.tar.gz
otp-4bf6acc06b5a6b155caebbf575ce524a0fedd75a.tar.bz2
otp-4bf6acc06b5a6b155caebbf575ce524a0fedd75a.zip
Merge branch 'maint-r14' into dev
* maint-r14: Prepare release Fix that the documentation top index generator can handle an Ericsson internal application group Teach -init_debug to print info about on_load handlers begin run Fix hang in on_load handlers in embedded mode Conflicts: erts/vsn.mk lib/kernel/vsn.mk
Diffstat (limited to 'lib/kernel/src/kernel.erl')
-rw-r--r--lib/kernel/src/kernel.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/kernel/src/kernel.erl b/lib/kernel/src/kernel.erl
index 92ee7b441a..1e07620a3e 100644
--- a/lib/kernel/src/kernel.erl
+++ b/lib/kernel/src/kernel.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2009. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2010. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -143,6 +143,13 @@ init(safe) ->
Boot = start_boot_server(),
DiskLog = start_disk_log(),
Pg2 = start_pg2(),
+
+ %% Run the on_load handlers for all modules that have been
+ %% loaded so far. Running them at this point means that
+ %% on_load handlers can safely call kernel processes
+ %% (and in particular call code:priv_dir/1 or code:lib_dir/1).
+ init:run_on_load_handlers(),
+
{ok, {SupFlags, Boot ++ DiskLog ++ Pg2}}.
get_code_args() ->