From 06d560be94935377a7e3291d43072f9d4d330eb8 Mon Sep 17 00:00:00 2001 From: Magnus Henoch Date: Fri, 21 Oct 2011 17:46:44 +0100 Subject: An ODBC process should exit normally if its client exits with 'shutdown' There is nothing strange about the client shutting down, so the ODBC process should exit normally to avoid generating a crash report for a non-problem. Update appup.src for new version --- lib/odbc/src/odbc.erl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/odbc/src/odbc.erl') diff --git a/lib/odbc/src/odbc.erl b/lib/odbc/src/odbc.erl index 68497292db..36afd1abcf 100644 --- a/lib/odbc/src/odbc.erl +++ b/lib/odbc/src/odbc.erl @@ -748,6 +748,9 @@ handle_info({'DOWN', _Ref, _Type, _Process, normal}, State) -> handle_info({'DOWN', _Ref, _Type, _Process, timeout}, State) -> {stop, normal, State#state{reply_to = undefined}}; + +handle_info({'DOWN', _Ref, _Type, _Process, shutdown}, State) -> + {stop, normal, State#state{reply_to = undefined}}; handle_info({'DOWN', _Ref, _Type, Process, Reason}, State) -> {stop, {stopped, {'EXIT', Process, Reason}}, -- cgit v1.2.3