Re: [CFR] reflect resolv.conf update to running application

From: Hajimu UMEMOTO (ume_at_FreeBSD.org)
Date: 09/05/05

  • Next message: M. Warner Losh: "Re: 802.11 status and futures"
    Date: Tue, 06 Sep 2005 02:29:53 +0900
    To: Randy Bush <randy@psg.com>
    
    

    Hi,

    >>>>> On Sun, 21 Aug 2005 12:19:46 +0000
    >>>>> Randy Bush <randy@psg.com> said:

    > (2) By reading the configuration file more frequently and more quickly
    > after a change, we increase the chances of a race condition in which
    > the resolve reads a partially written resolv.conf file during an
    > update. Does this happen in practice? I've always been very leery of
    > re-reading configuration files automatically based on a time-stamp, as
    > updates to files are not atomic at all.

    randy> hmmmmm

    randy> dunno about others' use patterns, but in my world, resolv.conf only
    randy> changes when my mobile platform moves layer three binding (i.e. not
    randy> an an 802.11 access point move). so the frequency is low, and it
    randy> is usually not issuing dns queries as i move. but when i get to
    randy> the new binding, i am annoyed if i have to whack the resolver.

    Yes, I believe resolv.conf is not updated so often. Once, it is
    updated, we cannot do DNS lookup correctly without restarting an
    application. My patch solves this situation.
    Even when re-reading resolv.conf fails unfortunately, you will be
    able to recover easily by touching resolv.conf instead of restarting
    your application.

    Sincerely,

    --
    Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
    ume@mahoroba.org  ume@{,jp.}FreeBSD.org
    http://www.imasy.org/~ume/
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
    

  • Next message: M. Warner Losh: "Re: 802.11 status and futures"

    Relevant Pages

    • Re: Troubleshooting
      ... If that doesn't resolve the issue, then suggest you attempt to reinstall ... Randy wrote: ... If you are trying to view this content over the network, ... I have contacted Microsoft and Dell with no results. ...
      (microsoft.public.windowsxp.general)
    • Re: System process consumes 15% of CPU
      ... is there anything showing in the applications tab? ... "Randy" wrote in message ... > My computer gets into a state every once in awhile where ... > resolve this is to reboot. ...
      (microsoft.public.windowsxp.perform_maintain)
    • Re: eMbedded visual c++ installation
      ... Randy ... "Jimbo" wrote: ... > MS needs to resolve this issue once and for all. ... > I've NEVER had an evc install happen successfully. ...
      (microsoft.public.windowsce.embedded)