aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/net_kernel.erl
diff options
context:
space:
mode:
authorAntonio SJ Musumeci <[email protected]>2010-02-20 12:10:23 -0500
committerRaimo Niskanen <[email protected]>2010-06-01 17:14:53 +0200
commit7d37fee4cc8201f9af508177d75f5c8c0d1dee7c (patch)
treeae35abdb1ec0458272605688698e97e677cd3fd5 /lib/kernel/src/net_kernel.erl
parent012e340d83e34200705200c5fafd55ee990c1795 (diff)
downloadotp-7d37fee4cc8201f9af508177d75f5c8c0d1dee7c.tar.gz
otp-7d37fee4cc8201f9af508177d75f5c8c0d1dee7c.tar.bz2
otp-7d37fee4cc8201f9af508177d75f5c8c0d1dee7c.zip
Add catch all handle_call to net_kernel
Of the core networking apps only net_kernel fails to have a catchall for unknown gen_server:call messages causing it to exit and eventually bring down kernal_sup and beam if it had not been manually started. For stability and consistancy it has been altered to include a catchall which does not reply.
Diffstat (limited to 'lib/kernel/src/net_kernel.erl')
-rw-r--r--lib/kernel/src/net_kernel.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/kernel/src/net_kernel.erl b/lib/kernel/src/net_kernel.erl
index dec353d6f2..0e17c059e5 100644
--- a/lib/kernel/src/net_kernel.erl
+++ b/lib/kernel/src/net_kernel.erl
@@ -503,7 +503,10 @@ handle_call({new_ticktime,T,TP}, From, #state{tick = #tick{ticker = Tckr,
handle_call({new_ticktime,From,_},
_,
#state{tick = #tick_change{time = T}} = State) ->
- async_reply({reply, {ongoing_change_to, T}, State}, From).
+ async_reply({reply, {ongoing_change_to, T}, State}, From);
+
+handle_call(_Msg, _From, State) ->
+ {noreply, State}.
%% ------------------------------------------------------------
%% handle_cast.