diff options
author | Björn Gustavsson <[email protected]> | 2010-10-21 14:31:33 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-10-21 14:31:33 +0200 |
commit | 4bf6acc06b5a6b155caebbf575ce524a0fedd75a (patch) | |
tree | 542afae453222edf944a644cc70c904da0ecf30b /lib/kernel/src/kernel.erl | |
parent | 5fcb6e185734a42ff8236a1ee2626b0adfc3c65e (diff) | |
parent | 1419cda9991775c51a931ef63a51da477391722c (diff) | |
download | otp-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.erl | 9 |
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() -> |