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

Magnus Henoch <>
Fri Oct 21 18:52:02 CEST 2011


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:

-- 
Magnus Henoch
Erlang Solutions Ltd
http://www.erlang-solutions.com/



More information about the erlang-patches mailing list