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

From: Dan Nelson (dnelson_at_allantgroup.com)
Date: 08/23/05

  • Next message: Sergey Babkin: "Re: Re: [CFR] reflect resolv.conf update to running application"
    Date: Tue, 23 Aug 2005 10:26:20 -0500
    To: Peter Jeremy <PeterJeremy@optushome.com.au>
    
    

    In the last episode (Aug 23), Peter Jeremy said:
    > On Mon, 2005-Aug-22 13:18:46 -0700, Matthew Reimer wrote:
    > >How about just stat'ing resolv.conf if more than X seconds has
    > >passed since the last stat, rather than for every lookup?
    >
    > That reduces the number of stat() calls but doesn't resolve the
    > possibility of reading a half-written resolv.conf.

    Easy enough to only reread the file if stat tells you it's more than 2
    seconds old.

    -- 
    	Dan Nelson
    	dnelson@allantgroup.com
    _______________________________________________
    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: Sergey Babkin: "Re: Re: [CFR] reflect resolv.conf update to running application"

    Relevant Pages

    • Re: [CFR] reflect resolv.conf update to running application
      ... rather than for every lookup? ... That reduces the number of stat() calls but doesn't resolve the possibility ... Peter Jeremy ... To unsubscribe, ...
      (freebsd-arch)
    • Curious file-permissions problem
      ... Now maybe there's a better way to manage the file permissions for ... Total respect due to any guru who can explain this... ... ~$ stat /tmp/foo/bar ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • RE: problems with em(4)
      ... I modify kernel codes to stat that. ... And it's test in a real telecom environment. ... hours does seem to be the magic number, regardless ... To unsubscribe, ...
      (freebsd-net)
    • Re: qurious find error
      ... directory listing, closes the discriptor, then does a ... 'stat' on each file, for additional information. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: "Could not stat resume device file"
      ... the following message is received at the beginning of the boot process, ... Questions: What does "stat" mean? ... file" from /dev/sda5 to /dev/sda3 after repartitioning, and I had to tell the program giving the error to use the new device file instead of the old one. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)

  • Quantcast