diff options
author | Richard Carlsson <[email protected]> | 2018-05-23 14:15:23 +0200 |
---|---|---|
committer | Richard Carlsson <[email protected]> | 2018-05-24 09:35:43 +0200 |
commit | f18549cf0ab10e553da0f4f839c72370a304c10f (patch) | |
tree | bb6bcc41c03cff2a9b747313f1be3c4729088b2c /erts/preloaded/src | |
parent | 066af3f1e603326cce1e63de89c35b71fed2e7cd (diff) | |
download | otp-f18549cf0ab10e553da0f4f839c72370a304c10f.tar.gz otp-f18549cf0ab10e553da0f4f839c72370a304c10f.tar.bz2 otp-f18549cf0ab10e553da0f4f839c72370a304c10f.zip |
Make erl_init.c pass the boot module to erl_init.beam
Diffstat (limited to 'erts/preloaded/src')
-rw-r--r-- | erts/preloaded/src/erl_init.erl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/erts/preloaded/src/erl_init.erl b/erts/preloaded/src/erl_init.erl index 186a04a8e8..f43e060438 100644 --- a/erts/preloaded/src/erl_init.erl +++ b/erts/preloaded/src/erl_init.erl @@ -23,11 +23,14 @@ -export([start/2]). -%% This gets the boot arguments as expected by init:boot/1 +%% This gets the module name given by the +i option (default 'init') +%% and the list of command line arguments --spec start(_, term()) -> term(). -start(_Env, Argv) -> - run(init, boot, Argv). +-spec start(Mod, BootArgs) -> no_return() when + Mod :: module(), + BootArgs :: [binary()]. +start(Mod, BootArgs) -> + run(Mod, boot, BootArgs). run(M, F, A) -> case erlang:function_exported(M, F, 1) of |