From: Volker Lendecke Date: Fri, 20 Mar 2020 11:17:08 +0000 (+0100) Subject: winbind: Set the parent->child sock nonblocking X-Git-Tag: ldb-2.2.0~1223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8946531f1f70c87b17ded5a9b42cf0329fe83fe7;p=thirdparty%2Fsamba.git winbind: Set the parent->child sock nonblocking The parent goes through wb_simple_trans_send(), which deals with short writes fine. Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c index 8188ed097df..8ad2485324e 100644 --- a/source3/winbindd/winbindd_dual.c +++ b/source3/winbindd/winbindd_dual.c @@ -1688,6 +1688,7 @@ static bool fork_domain_child(struct winbindd_child *child) } child->sock = fdpair[1]; + set_blocking(child->sock, false); return True; }