[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patches] [PATCH] Reload resolv.conf for all threads
- To: Aurelien Jarno <aurelien@xxxxxxxxxxx>
- Subject: Re: [patches] [PATCH] Reload resolv.conf for all threads
- From: "Joseph S. Myers" <joseph@xxxxxxxxxxxxxxxx>
- Date: Sun, 19 Sep 2010 19:42:27 +0000 (UTC)
On Wed, 15 Sep 2010, Aurelien Jarno wrote:
> When resolv.conf is modified, the resolver code noticed that and reload
> it. However on a multithread program, the thread which notices the
> change doesn't ask all the other to re-initialize their resolver. The
> patch below fixes the issue.
>
> I submit it here, as this part of the code is EGLIBC specific and not p
> art of GLIBC (though present in most distributions).
>
> 2010-09-15 Aurelien Jarno <aurelien@xxxxxxxxxxx>
>
> * resolv/res_libc (__res_maybe_init): Ask other threads to
> to re-initialize their resolver states when _PATH_RESCONF
> changes.
Thanks, committed.
--
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx