[SCM] Samba Shared Repository - branch v3-6-test updated
Volker Lendecke
vlendec at samba.org
Wed May 4 05:50:25 MDT 2011
The branch, v3-6-test has been updated
via 2f6e543 s3: Properly deal with exited winbind children
from 64e7b7b s3: Filter out duplicates in name_query()
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test
- Log -----------------------------------------------------------------
commit 2f6e5436a707f4eed15130dff664327352c776fa
Author: Volker Lendecke <vl at samba.org>
Date: Wed May 4 12:11:04 2011 +0200
s3: Properly deal with exited winbind children
When a winbind child exits, we need to immediately close the socket. If not,
the next request to that child will be sent to a socket without a listener,
leading to a failed request. This failed request will then trigger a proper
re-init.
This patch avoids the one failed request.
Autobuild-User: Volker Lendecke <vlendec at samba.org>
Autobuild-Date: Wed May 4 13:32:16 CEST 2011 on sn-devel-104
(cherry picked from commit d08414b6799747f224ba02300585c8b15ac6bc0e)
-----------------------------------------------------------------------
Summary of changes:
source3/winbindd/winbindd_dual.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c
index ebafe8f..d354f34 100644
--- a/source3/winbindd/winbindd_dual.c
+++ b/source3/winbindd/winbindd_dual.c
@@ -511,6 +511,11 @@ void winbind_child_died(pid_t pid)
DLIST_REMOVE(winbindd_children, child);
child->pid = 0;
+
+ if (child->sock != -1) {
+ close(child->sock);
+ child->sock = -1;
+ }
}
/* Ensure any negative cache entries with the netbios or realm names are removed. */
--
Samba Shared Repository
More information about the samba-cvs
mailing list