summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-26 11:39:41 +0200
committerVolker Lendecke <vlendec@samba.org>2011-08-26 13:14:27 +0200
commite0e3d215b1902ecbeb3d469af9a196856711921e (patch)
tree4941ea6f32b054f028c9fca80526b1b9b96f4f7d
parent964e809ce2069ad888e0fb12dfe51bac5a461508 (diff)
downloadsamba-e0e3d215b1902ecbeb3d469af9a196856711921e.tar.gz
samba-e0e3d215b1902ecbeb3d469af9a196856711921e.tar.bz2
samba-e0e3d215b1902ecbeb3d469af9a196856711921e.zip
s3: Use sys_write in fork_domain_child
Counterpart for last checkin. A lot less likely, but not impossible in a child. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Aug 26 13:14:27 CEST 2011 on sn-devel-104
-rw-r--r--source3/winbindd/winbindd_dual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c
index 47de902a5f..8851b8a258 100644
--- a/source3/winbindd/winbindd_dual.c
+++ b/source3/winbindd/winbindd_dual.c
@@ -1360,7 +1360,7 @@ static bool fork_domain_child(struct winbindd_child *child)
status = winbindd_reinit_after_fork(child, child->logfilename);
- nwritten = write(state.sock, &status, sizeof(status));
+ nwritten = sys_write(state.sock, &status, sizeof(status));
if (nwritten != sizeof(status)) {
DEBUG(1, ("fork_domain_child: Could not write status: "
"nwritten=%d, error=%s\n", (int)nwritten,