diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-09-30 08:27:48 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-09-30 08:27:48 +0000 |
commit | 74fef3bbcbaecddc5ce293e15f765860348c32a8 (patch) | |
tree | ae819b77079f7b35d4e52549b0e87c0b321be8b7 /nscd/nscd.c | |
parent | 0891f9706f4fc0951324b3a3f113f60191b96434 (diff) | |
download | glibc-74fef3bbcbaecddc5ce293e15f765860348c32a8.zip glibc-74fef3bbcbaecddc5ce293e15f765860348c32a8.tar.gz glibc-74fef3bbcbaecddc5ce293e15f765860348c32a8.tar.bz2 |
Update.
* nscd/nscd.c (termination_handler): Reset timestamp so that
client immediately stop using the database.
(__nscd_drop_map_ref): Change second parameter to be a reference to
* nscd/nscd.h: Add declaration of addinitgroups and
Diffstat (limited to 'nscd/nscd.c')
-rw-r--r-- | nscd/nscd.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/nscd/nscd.c b/nscd/nscd.c index 3fb5ad4..146f61c 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -430,9 +430,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) |