s3: Properly deal with exited winbind children
commitde77e9e6d712581ecd42f992621bb2b588be0c30
authorVolker Lendecke <vl@samba.org>
Wed, 4 May 2011 10:11:04 +0000 (4 12:11 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sun, 15 May 2011 18:17:06 +0000 (15 20:17 +0200)
tree524876b42e25a0e0d234434f2b8791c963977e72
parenta71e74fe263f2c59280c9032a4d399ccbfcee67b
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@samba.org>
Autobuild-Date: Wed May  4 13:32:16 CEST 2011 on sn-devel-104
(cherry picked from commit d08414b6799747f224ba02300585c8b15ac6bc0e)
(cherry picked from commit 2f6e5436a707f4eed15130dff664327352c776fa)
source3/winbindd/winbindd_dual.c