Having exit_server (ie, abnormal exit) call panic action

Ira Cooper ira at samba.org
Tue Mar 26 13:39:21 MDT 2013


Or just have exit_server_common call smb_panic, when passed
SERVER_EXIT_ADNORMAL?

I think you likely want a function to do the stack output and then actually
produce a core, and we already have it...

-Ira


On Tue, Mar 26, 2013 at 3:08 PM, Richard Sharpe <realrichardsharpe at gmail.com
> wrote:

> Hi folks,
>
> While debugging problems I found that it was annoying that calls to
> exit_server("blah blah") which calls
> exit_server_common(SERVER_EXIT_ABNORMAL,...) does not invoke any panic
> action that has been specified. That would have made it easier to
> determine why the code was going down that path.
>
> I think as simple fix would be to abstract the panic action handling
> into a macro and then use it both in smb_panic and the abnormal exit
> arm of exit_server_common.
>
> --
> Regards,
> Richard Sharpe
> (何以解憂?唯有杜康。--曹操)
>


More information about the samba-technical mailing list