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

From: Jeremie Le Hen (jeremie_at_le-hen.org)
Date: 08/22/05

  • Next message: Poul-Henning Kamp: "Re: [CFR] reflect resolv.conf update to running application"
    Date: Mon, 22 Aug 2005 18:02:31 +0200
    To: Hajimu UMEMOTO <ume@freebsd.org>
    
    

    Hi Hajimu-san,

    > If /usr/bin/cmp does not exist, The whole test will fail, then it will
    > work as heretofore. So, I think we don't need to test if /usr/bin/cmp
    > exists.
    > However, if /usr/bin/cmp does not exist, error message will out. So,
    > we need to supress it as following:
    >
    > if cmp -s /etc/resolv.conf.std /etc/resolv.conf; then
    > rm -f /etc/resolv.conf.std
    > return 0
    > fi 2>/dev/null

    It would be good to put a comment in front of this block to explain
    this, or it has good chances to generates some mails in the future.

    Thanks.
    Regards,

    -- 
    Jeremie Le Hen
    < jeremie at le-hen dot org >< ttz at chchile dot org >
    _______________________________________________
    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: Poul-Henning Kamp: "Re: [CFR] reflect resolv.conf update to running application"

    Relevant Pages