[PATCH] talloc_free_for_exit() and targeted write protection for talloc destructor

Volker Lendecke vl at samba.org
Tue Nov 29 06:57:39 UTC 2016


On Tue, Nov 29, 2016 at 07:13:53AM +1300, Andrew Bartlett wrote:
> In a hope of getting more attention and being more transparent, here is
> the talloc changes I included in my previous patch set.
> 
> As background, I want to make our LDAP server multi-process, and
> running a connect()/bind()/close() loop against the LDAP server showed
> a significant cost in talloc_free(ev) and talloc_autofree() just before
> exit.

Question -- why don't you directly call exit() without the
talloc_free(ev)? Or even _exit()? We should be able to live with
crashed processes. What destructors are you missing?

Volker



More information about the samba-technical mailing list