aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded
diff options
context:
space:
mode:
authorLuis Rascao <[email protected]>2015-09-12 15:48:30 +0100
committerLuis Rascao <[email protected]>2015-11-05 13:33:49 +0000
commitf1f6ba4da602eb96727b6e9b5ac3dfdac17a1bd8 (patch)
tree71a20663048be313c0f06e3ce43211f484d22f07 /erts/preloaded
parent0ce885af02b6666d498c408ff0188a5fd22c8575 (diff)
downloadotp-f1f6ba4da602eb96727b6e9b5ac3dfdac17a1bd8.tar.gz
otp-f1f6ba4da602eb96727b6e9b5ac3dfdac17a1bd8.tar.bz2
otp-f1f6ba4da602eb96727b6e9b5ac3dfdac17a1bd8.zip
Fix crash on init restart
On load handler process not being launched on a restart, NIF's such as asn1rt_nif require it to be present for correct loading.
Diffstat (limited to 'erts/preloaded')
-rw-r--r--erts/preloaded/ebin/init.beambin48768 -> 48812 bytes
-rw-r--r--erts/preloaded/src/init.erl2
2 files changed, 1 insertions, 1 deletions
diff --git a/erts/preloaded/ebin/init.beam b/erts/preloaded/ebin/init.beam
index 851513b2e9..73dfb3d351 100644
--- a/erts/preloaded/ebin/init.beam
+++ b/erts/preloaded/ebin/init.beam
Binary files differ
diff --git a/erts/preloaded/src/init.erl b/erts/preloaded/src/init.erl
index c4e37b76f1..0ad5824ad1 100644
--- a/erts/preloaded/src/init.erl
+++ b/erts/preloaded/src/init.erl
@@ -167,7 +167,6 @@ stop(Status) -> init ! {stop,{stop,Status}}, ok.
boot(BootArgs) ->
register(init, self()),
process_flag(trap_exit, true),
- start_on_load_handler_process(),
{Start0,Flags,Args} = parse_boot_args(BootArgs),
Start = map(fun prepare_run_args/1, Start0),
Flags0 = flags_to_atoms_again(Flags),
@@ -225,6 +224,7 @@ code_path_choice() ->
end.
boot(Start,Flags,Args) ->
+ start_on_load_handler_process(),
BootPid = do_boot(Flags,Start),
State = #state{flags = Flags,
args = Args,