From owner-freebsd-arch@FreeBSD.ORG Sat Aug 20 18:52:00 2005 Return-Path: X-Original-To: freebsd-arch@FreeBSD.org Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05A0216A41F for ; Sat, 20 Aug 2005 18:52:00 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mail25.sea5.speakeasy.net (mail25.sea5.speakeasy.net [69.17.117.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6732543D46 for ; Sat, 20 Aug 2005 18:51:59 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 28955 invoked from network); 20 Aug 2005 18:51:59 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender ) by mail25.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 20 Aug 2005 18:51:58 -0000 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j7KIppBO061000; Sat, 20 Aug 2005 14:51:51 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-arch@FreeBSD.org Date: Sat, 20 Aug 2005 14:21:19 -0400 User-Agent: KMail/1.8 References: <430768AC.6020502@elischer.org> In-Reply-To: <430768AC.6020502@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200508201421.20498.jhb@FreeBSD.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx Cc: Julian Elischer , Hajimu UMEMOTO Subject: Re: [CFR] reflect resolv.conf update to running application X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2005 18:52:00 -0000 On Saturday 20 August 2005 01:30 pm, Julian Elischer wrote: > Hajimu UMEMOTO wrote: > > Hi, > > > > Our resolver reads resolv.conf once, and never re-read it. Recent > > OpenBSD changed to re-read resolv.conf when it is updated. I believe > > it is useful specially for mobile environment. So, I made a patch for > > our resolver. Please review it. > > From a very quick read I couldn't see when it does the update. > does it do it of EVERY lookup or only after a failed lookup? Looks like it checks to see if the file mod date has changed on every looku= p=20 since he changed the code to always call _res_init() instead of only when t= he=20 INIT flag was clear. =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org