mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-15 03:40:32 +01:00
2004-11-22 Colin Walters <walters@verbum.org>
* 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
This commit is contained in:
parent
a6a303d9a4
commit
f2fc771dd0
2 changed files with 9 additions and 3 deletions
|
|
@ -1,5 +1,11 @@
|
|||
2004-11-22 Colin Walters <walters@verbum.org>
|
||||
|
||||
* 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 <walters@redhat.com>
|
||||
|
||||
* src/Makefile.am (NetworkManager_SOURCES): Add
|
||||
NetworkManagerDevicePrivate.h.
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue