From 6a87697239310dd529781d9db1ee705eeaa5405e Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 30 Sep 2004 09:05:55 +0000 Subject: Updated to fedora-glibc-20040930T0838 --- nscd/nscd.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'nscd/nscd.c') diff --git a/nscd/nscd.c b/nscd/nscd.c index 7f8f58fde6..2a4cb2291d 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -438,9 +438,14 @@ termination_handler (int signum) /* Synchronize memory. */ for (int cnt = 0; cnt < lastdb; ++cnt) - if (dbs[cnt].persistent) - // XXX async OK? - msync (dbs[cnt].head, dbs[cnt].memsize, MS_ASYNC); + { + /* Make sure nobody keeps using the database. */ + dbs[cnt].head->timestamp = 0; + + if (dbs[cnt].persistent) + // XXX async OK? + msync (dbs[cnt].head, dbs[cnt].memsize, MS_ASYNC); + } /* Shutdown the SELinux AVC. */ if (selinux_enabled) @@ -496,6 +501,8 @@ write_pid (const char *file) into nscd. There currently is no special getaddrinfo version for use in nscd. In case it should be necessary such a version must be created and this dummy version should be removed. */ +extern void getaddrinfo (void) __attribute ((visibility ("hidden"))); + void getaddrinfo (void) { -- cgit v1.2.3