aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/code_server.erl
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-02-11 12:21:50 +0100
committerFredrik Gustafsson <[email protected]>2013-02-11 12:21:50 +0100
commit6b0aa99142ab7dcbc3db50b4940d6096d64ab6ef (patch)
treee0a35828601078cd489625c7664138d1e73f3c29 /lib/kernel/src/code_server.erl
parent8abbf2b7e348674930a31c34a08fa1424bc08c78 (diff)
parent0660708dd41e5b0b1c2d03487121ace9c3616374 (diff)
downloadotp-6b0aa99142ab7dcbc3db50b4940d6096d64ab6ef.tar.gz
otp-6b0aa99142ab7dcbc3db50b4940d6096d64ab6ef.tar.bz2
otp-6b0aa99142ab7dcbc3db50b4940d6096d64ab6ef.zip
Merge branch 'vd/code_get_mode/OTP-10823'
* vd/code_get_mode/OTP-10823: Added name prefix to code.xml Add a new function code:get_mode() can be used to detect how the code servers behaves
Diffstat (limited to 'lib/kernel/src/code_server.erl')
-rw-r--r--lib/kernel/src/code_server.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl
index b770fce887..5d74e8620b 100644
--- a/lib/kernel/src/code_server.erl
+++ b/lib/kernel/src/code_server.erl
@@ -422,6 +422,9 @@ handle_call({is_cached,File}, {_From,_Tag}, S=#state{cache=Cache}) ->
end
end;
+handle_call(get_mode, {_From,_Tag}, S=#state{mode=Mode}) ->
+ {reply, Mode, S};
+
handle_call(Other,{_From,_Tag}, S) ->
error_msg(" ** Codeserver*** ignoring ~w~n ",[Other]),
{noreply,S}.