mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Re-run res_init() when resolv.conf changes
libc caches the contents of resolv.conf, so if it changes (eg, because the network state changed), we need re-run res_init(). http://bugzilla.gnome.org/show_bug.cgi?id=584246
This commit is contained in:
@@ -284,6 +284,9 @@ start_async_lookups (char **argv, int argc)
|
||||
lookup_by_name_callback,
|
||||
argv[i]);
|
||||
}
|
||||
|
||||
/* Stress-test the reloading code */
|
||||
g_signal_emit_by_name (resolver, "reload");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user