NetworkManager r4003 - trunk/src/backends
- From: mbiebl svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r4003 - trunk/src/backends
- Date: Fri, 22 Aug 2008 19:58:13 +0000 (UTC)
Author: mbiebl
Date: Fri Aug 22 19:58:13 2008
New Revision: 4003
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=4003&view=rev
Log:
Do not restart nscd, simply invalidate the hosts cache.
Modified:
trunk/src/backends/NetworkManagerDebian.c
Modified: trunk/src/backends/NetworkManagerDebian.c
==============================================================================
--- trunk/src/backends/NetworkManagerDebian.c (original)
+++ trunk/src/backends/NetworkManagerDebian.c Fri Aug 22 19:58:13 2008
@@ -49,12 +49,15 @@
/*
* nm_system_update_dns
*
- * Make glibc/nscd aware of any changes to the resolv.conf file by
- * restarting nscd.
+ * Invalidate the nscd host cache, if it exists, since
+ * we changed resolv.conf.
*
*/
void nm_system_update_dns (void)
{
- nm_spawn_process ("/usr/sbin/invoke-rc.d nscd restart");
+ if (g_file_test ("/usr/sbin/nscd", G_FILE_TEST_IS_EXECUTABLE)) {
+ nm_info ("Clearing nscd hosts cache.");
+ nm_spawn_process ("/usr/sbin/nscd -i hosts");
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]