[erlang-patches] An ODBC process should exit normally if its client exits with 'shutdown'

Henrik Nord henrik@REDACTED
Wed Nov 2 10:07:29 CET 2011


On 10/21/2011 06:52 PM, Magnus Henoch wrote:
> I noticed that ODBC processes would always generate crash reports when
> our system was being shut down, and came up with this patch:
>
> git fetch git://github.com/legoscia/otp.git odbc-shutdown-normal-exit
>
> https://github.com/legoscia/otp/compare/odbc-shutdown-normal-exit
> https://github.com/legoscia/otp/compare/odbc-shutdown-normal-exit.patch
>
> Here is an example of such a crash report:
>
>    =CRASH REPORT==== 21-Oct-2011::16:52:55 ===
>      crasher:
>        initial call: odbc:init/1
>        pid:<0.2685.0>
>        registered_name: []
>        exception exit: {stopped,{'EXIT',<0.2684.0>,shutdown}}
>          in function  gen_server:terminate/6
>        ancestors: [odbc_sup,<0.2520.0>]
>        messages: [{'EXIT',#Port<0.26070>,normal}]
>        links: [<0.2521.0>]
>        dictionary: []
>        trap_exit: true
>        status: running
>        heap_size: 610
>        stack_size: 24
>        reductions: 1483
>      neighbours:
>
Thank you for the contribution, your branch is included in 'pu'

-- 
/Henrik Nord Erlang/OTP




More information about the erlang-patches mailing list