On Wed, Nov 15, 2006 at 06:30:06PM +0100, Federico Giannici wrote:
> Antoine Jacoutot wrote:
> >Selon Federico Giannici <[EMAIL PROTECTED]>:
> >>I'm about to compile a program (milter-greylist) that requires a
> >
> >You mean /usr/ports/mail/milter-greylist ?
>
> Yes, but version 3, that supports greylisting based on blacklists.
> The old version on ports doesn't use DNS...
>
> So, the question remains: anybody knows if DNS resolver in OpenBSD 4.0
> is thread-safe?
At least not as much as one would want, see gethostbyname(3), under
BUGS:
These functions use static data storage; if the data is needed for
future use, it should be copied before any subsequent calls overwrite
it.
You could, of course, write a gethostbyname_r wrapper utilizing a mutex
and some malloc() magic.
Joachim