From f2fc771dd03f5a167c17a086796fc39fe9812410 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 23 Nov 2004 04:50:12 +0000 Subject: [PATCH] 2004-11-22 Colin Walters * src/backends/NetworkManagerRedHat.c (nm_system_update_dns): Run "nscd -i hosts" to invalidate the host cache instead of restarting nscd, which is essentially a noop since nscd caches hosts on disk too. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@322 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- ChangeLog | 6 ++++++ src/backends/NetworkManagerRedHat.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a27128eb95..cea8030005 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2004-11-22 Colin Walters + * src/backends/NetworkManagerRedHat.c (nm_system_update_dns): Run + "nscd -i hosts" to invalidate the host cache instead of restarting nscd, + which is essentially a noop since nscd caches hosts on disk too. + +2004-11-22 Colin Walters + * src/Makefile.am (NetworkManager_SOURCES): Add NetworkManagerDevicePrivate.h. diff --git a/src/backends/NetworkManagerRedHat.c b/src/backends/NetworkManagerRedHat.c index 581ef5b563..0a148b95d6 100644 --- a/src/backends/NetworkManagerRedHat.c +++ b/src/backends/NetworkManagerRedHat.c @@ -304,14 +304,14 @@ void nm_system_kill_all_dhcp_daemons (void) /* * 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) { if(nm_spawn_process ("/etc/init.d/nscd status")) - nm_spawn_process ("/etc/init.d/nscd restart"); + nm_spawn_process ("nscd -i hosts"); }