diff options
author | Björn Gustavsson <[email protected]> | 2016-01-28 14:21:05 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-01-28 14:21:05 +0100 |
commit | ef19115a637619d719ac96fdbd2262ca62fa8095 (patch) | |
tree | 46ac62725d9a8c705e4ccf41f525c982563390c7 /lib/kernel/src/kernel.erl | |
parent | df5be3657a7eca136632fddd3e11a5cc2d78a1d8 (diff) | |
parent | 98b1292ee49c5940318962f393f125850d870d96 (diff) | |
download | otp-ef19115a637619d719ac96fdbd2262ca62fa8095.tar.gz otp-ef19115a637619d719ac96fdbd2262ca62fa8095.tar.bz2 otp-ef19115a637619d719ac96fdbd2262ca62fa8095.zip |
Merge branch 'bjorn/kernel/clean-up-code_server'
* bjorn/kernel/clean-up-code_server:
code_server: Add specs for all exported functions
code_server: Add types to the state record
code_server: Don't export internal system_* functions
Simplify starting of code server
Remove first argument of code_server:call()
Diffstat (limited to 'lib/kernel/src/kernel.erl')
-rw-r--r-- | lib/kernel/src/kernel.erl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/kernel/src/kernel.erl b/lib/kernel/src/kernel.erl index 5f33f25a0d..40544da6c3 100644 --- a/lib/kernel/src/kernel.erl +++ b/lib/kernel/src/kernel.erl @@ -98,7 +98,7 @@ init([]) -> {kernel_config, start_link, []}, permanent, 2000, worker, [kernel_config]}, Code = {code_server, - {code, start_link, get_code_args()}, + {code, start_link, []}, permanent, 2000, worker, [code]}, File = {file_server_2, {file_server, start_link, []}, @@ -158,12 +158,6 @@ init(safe) -> {ok, {SupFlags, Boot ++ DiskLog ++ Pg2}}. -get_code_args() -> - case init:get_argument(nostick) of - {ok, [[]]} -> [[nostick]]; - _ -> [] - end. - start_dist_ac() -> Spec = [{dist_ac,{dist_ac,start_link,[]},permanent,2000,worker,[dist_ac]}], case application:get_env(kernel, start_dist_ac) of |