Guidelines about fixing bugs

Volker Lendecke vl at samba.org
Thu Feb 2 09:57:45 UTC 2017


On Thu, Feb 02, 2017 at 01:28:56AM -0800, Matthieu Patou wrote:
> I had a chat offline with Jeremy today (well yesterday) and he seems to
> be ok with the idea of doing ASYNC resolution.
> 
> In source4/libcli/resolve/dns_ex.c we are doing ASYNC DNS (for the AD
> server part) by forking child and running getaddrinfo in it. Is it
> something like that that we want to do for Winbindd (and other tools).

You want this in a pthread helper. getaddrinfo is explicitly
threadsafe, so you should take a look at

source3/lib/pthreadpool/pthreadpool_tevent.h

in master. In previous versions we used to have fncall.c, that was
supposed to do something similar.

Volker



More information about the samba-technical mailing list