[Goodies-dev] [Bug 4118] weather-plugin does not adapt to new network configuration
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Wed May 28 21:48:50 CEST 2008
DO NOT REPLY TO THIS EMAIL. Also, do not reply via email to the person
whose email is mentioned below. To comment on this bug, please visit:
http://bugzilla.xfce.org/show_bug.cgi?id=4118
------- Comment #1 from colin at colino.net 2008-05-28 19:48 UTC -------
FYI, the solution to this is to refresh nameserver info, which is cached by the
libc. Doing this is quite easy:
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
update_network_stuff()
{
...
res_init();
do_network_stuff();
...
}
HTH
--
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Goodies-dev
mailing list