winbind: Set the parent->child sock nonblocking
authorVolker Lendecke <vl@samba.org>
Fri, 20 Mar 2020 11:17:08 +0000 (12:17 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 25 Mar 2020 09:04:28 +0000 (09:04 +0000)
The parent goes through wb_simple_trans_send(), which deals with short
writes fine.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd_dual.c

index 8188ed097df03dda9d8231ea5301981e6d23e8ae..8ad2485324ea93fa1b0921fce2902348c17ad10c 100644 (file)
@@ -1688,6 +1688,7 @@ static bool fork_domain_child(struct winbindd_child *child)
                }
 
                child->sock = fdpair[1];
+               set_blocking(child->sock, false);
                return True;
        }