From 4ee43dbd477140bd4bf6c42d156dc0a736994da2 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 6 Apr 2006 22:31:45 +0000 Subject: 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. (This used to be commit 3cd5c3df0d1b98dfa90663973ab13b5d3dbf737e) --- source3/nsswitch/winbindd_dual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nsswitch/winbindd_dual.c') diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c index a049bf7b7a..cdfa1e0493 100644 --- a/source3/nsswitch/winbindd_dual.c +++ b/source3/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); } -- cgit