aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-01-27 12:39:05 +0100
committerBjörn Gustavsson <[email protected]>2016-01-27 16:33:24 +0100
commit480239fc11d72cf3434e61b541ffec9cb98c2db3 (patch)
tree58e4de13e618ffdf55b236800c48e60e957c9106 /lib
parentb42d79a563993bacafcd3e4be24f324406e65c26 (diff)
downloadotp-480239fc11d72cf3434e61b541ffec9cb98c2db3.tar.gz
otp-480239fc11d72cf3434e61b541ffec9cb98c2db3.tar.bz2
otp-480239fc11d72cf3434e61b541ffec9cb98c2db3.zip
code_server: Don't export internal system_* functions
There is no reason to export system_continue/3 and system_terminate/4 from code_server. Servers that use proc_lib and 'sys' to handle system message do need those functions exported, but code_server contains a modified copy of the system message handling code from 'sys', and that code only make local calls to system_continue/3 and system_terminate/4.
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/src/code_server.erl2
-rw-r--r--lib/kernel/test/code_SUITE.erl13
2 files changed, 1 insertions, 14 deletions
diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl
index 83b14a6ee4..77d531b2bd 100644
--- a/lib/kernel/src/code_server.erl
+++ b/lib/kernel/src/code_server.erl
@@ -23,8 +23,6 @@
-export([start_link/1,
call/1,
- system_continue/3,
- system_terminate/4,
system_code_change/4,
error_msg/2, info_msg/2
]).
diff --git a/lib/kernel/test/code_SUITE.erl b/lib/kernel/test/code_SUITE.erl
index 772a1e6b14..10c1278062 100644
--- a/lib/kernel/test/code_SUITE.erl
+++ b/lib/kernel/test/code_SUITE.erl
@@ -850,18 +850,7 @@ check_funs({'$M_EXPR','$F_EXPR',1},
{code_server,start_link,1}]) -> 0;
check_funs({'$M_EXPR','$F_EXPR',1},
[{lists,filter,2},
- {code_server,try_archive_subdirs,3},
- {code_server,all_archive_subdirs,1},
- {code_server,archive_subdirs,1},
- {code_server,insert_name,3},
- {code_server,replace_name,2},
- {code_server,update,2},
- {code_server,maybe_update,2},
- {code_server,do_add,4},
- {code_server,add_path,4},
- {code_server,handle_call,3},
- {code_server,loop,1},
- {code_server,system_continue,3}]) -> 0;
+ {code_server,try_archive_subdirs,3}|_]) -> 0;
check_funs({'$M_EXPR','$F_EXPR',_},
[{erlang,apply,2},
{erlang,spawn_link,1},