[SCM] Samba Shared Repository - branch master updated
Volker Lendecke
vlendec at samba.org
Wed May 4 05:33:02 MDT 2011
The branch, master has been updated
via d08414b s3: Properly deal with exited winbind children
from b8eaec6 s3-vfs: make vfswrap_llistxattr and vfswrap_flistxattr static.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit d08414b6799747f224ba02300585c8b15ac6bc0e
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
-----------------------------------------------------------------------
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 088353d..1078f8d 100644
--- a/source3/winbindd/winbindd_dual.c
+++ b/source3/winbindd/winbindd_dual.c
@@ -510,6 +510,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