diff options
author | Fredrik Gustafsson <[email protected]> | 2013-02-11 12:21:50 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-02-11 12:21:50 +0100 |
commit | 6b0aa99142ab7dcbc3db50b4940d6096d64ab6ef (patch) | |
tree | e0a35828601078cd489625c7664138d1e73f3c29 /lib/kernel/src/code_server.erl | |
parent | 8abbf2b7e348674930a31c34a08fa1424bc08c78 (diff) | |
parent | 0660708dd41e5b0b1c2d03487121ace9c3616374 (diff) | |
download | otp-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.erl | 3 |
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}. |