summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-04-06 22:31:45 +0000
committerJeremy Allison <jra@samba.org>2006-04-06 22:31:45 +0000
commitaa1fb3c96b9695b14a71917f2b82e56b01d27a4c (patch)
tree0a67ae273eb5dfd7282db7ef71fbce1e6f135392 /source/nsswitch
parentf70090e6925ed74e0adb3c6921e308e434ac9e74 (diff)
downloadsamba-aa1fb3c96b9695b14a71917f2b82e56b01d27a4c.tar.gz
samba-aa1fb3c96b9695b14a71917f2b82e56b01d27a4c.tar.xz
samba-aa1fb3c96b9695b14a71917f2b82e56b01d27a4c.zip
r14954: Fix #3569 based on William Jojo's work. AIX also
has the linear posix locking issue which causes CLEAR_IF_FIRST to cause performance problems. As we know we're in a daemon architecture with long-lived parent we can avoid this in the Samba case. Add a comment explaining this. Jeremy.
Diffstat (limited to 'source/nsswitch')
-rw-r--r--source/nsswitch/winbindd_dual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_dual.c b/source/nsswitch/winbindd_dual.c
index a049bf7b7a3..cdfa1e04932 100644
--- a/source/nsswitch/winbindd_dual.c
+++ b/source/nsswitch/winbindd_dual.c
@@ -629,7 +629,7 @@ static BOOL fork_domain_child(struct winbindd_child *child)
close(fdpair[1]);
/* tdb needs special fork handling */
- if (tdb_reopen_all() == -1) {
+ if (tdb_reopen_all(1) == -1) {
DEBUG(0,("tdb_reopen_all failed.\n"));
_exit(0);
}