Improved DNS resolving for laptops?
Nix
nix@esperi.org.uk
Tue Jul 27 05:36:00 GMT 2004
On Mon, 26 Jul 2004, Petter Reinholdtsen uttered the following:
> [Nix]
>> If you don't mind nonportability you could use fcntl (...,
>> F_NOTIFY,...) to find out the instant resolv.conf is changed. (In
>> practice you'd probably just set a flag on notification and consult
>> the flag on next DNS lookup: rereading resolv.conf more often than
>> that is pointless.)
>
> This feature notifies the process using SIGIO (at least acording to
> <URL:http://linux.com.hk/PenguinWeb/manpage.jsp?name=fcntl§ion=2>),
> so it is not very good to use in a library.
I thought it could use realtime signals, too? There are plenty of those.
--
`The copyright file is for everyone. That we make it available in
plain-text, uncompressed form rather than in spinning, throbbing
OpenGL-rendered 3D text over a thumping dance music soundtrack is a
feature, not a bug.' --- Branden Robinson
More information about the Libc-alpha
mailing list