Quesiton on samba_init_module

Richard Sharpe realrichardsharpe at gmail.com
Mon Nov 11 08:07:50 MST 2013


On Mon, Nov 11, 2013 at 2:56 AM, sandeep nag <sandeepnagamalli at gmail.com> wrote:
> I see a initialization function for samba module(init_samba_module), but
> not a exit function. I am opening a file in init function, where should I
> close it. Just worrying on, If I do not close it, It may lead to some
> inconsistencies.

Why are you opening it in the init function? Why can't you wait until
connect is called, because there will be a disconnect call (unless the
smbd crashes.)

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)


More information about the samba-technical mailing list