Re: [CFR] reflect resolv.conf update to running application
From: Dag-Erling Smørgrav (des_at_des.no)
Date: 08/22/05
- Previous message: Alexey Dokuchaev: "Re: fdesc allocation optimization"
- In reply to: Hajimu UMEMOTO: "Re: [CFR] reflect resolv.conf update to running application"
- Next in thread: Hajimu UMEMOTO: "Re: [CFR] reflect resolv.conf update to running application"
- Reply: Hajimu UMEMOTO: "Re: [CFR] reflect resolv.conf update to running application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Hajimu UMEMOTO <ume@freebsd.org> Date: Mon, 22 Aug 2005 15:04:40 +0200
Hajimu UMEMOTO <ume@freebsd.org> writes:
> + if diff /etc/resolv.conf.std /etc/resolv.conf >/dev/null 2>&1; then
> + rm -f /etc/resolv.conf.std
> + return 0
> + fi
> +
use 'cmp -s' instead of diff. It returns 0 when the files are
identical, 1 when they differ and 2 when one of the files does not
exist or is not readable, and never prints anything.
DES
-- Dag-Erling Smørgrav - des@des.no _______________________________________________ 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"
- Previous message: Alexey Dokuchaev: "Re: fdesc allocation optimization"
- In reply to: Hajimu UMEMOTO: "Re: [CFR] reflect resolv.conf update to running application"
- Next in thread: Hajimu UMEMOTO: "Re: [CFR] reflect resolv.conf update to running application"
- Reply: Hajimu UMEMOTO: "Re: [CFR] reflect resolv.conf update to running application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|