summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-26 11:38:21 +0200
committerVolker Lendecke <vl@samba.org>2011-08-26 11:42:35 +0200
commit964e809ce2069ad888e0fb12dfe51bac5a461508 (patch)
tree1092c042f314a0bba164ecd55907fe8e391aedc0 /source3/winbindd
parent099b9db4045d6d12ec9f55647def5d1af0baa3c6 (diff)
downloadsamba-964e809ce2069ad888e0fb12dfe51bac5a461508.tar.gz
samba-964e809ce2069ad888e0fb12dfe51bac5a461508.tar.bz2
samba-964e809ce2069ad888e0fb12dfe51bac5a461508.zip
s3: Use sys_read in fork_domain_child
I've seen [2011/08/26 01:44:10.872057, 1] winbindd/winbindd_dual.c:1336(fork_domain_child) fork_domain_child: Could not read child status: nread=-1, error=Interrupted system call on a customer box. Not good.
Diffstat (limited to 'source3/winbindd')
-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 5bf90b1222..47de902a5f 100644
--- a/source3/winbindd/winbindd_dual.c
+++ b/source3/winbindd/winbindd_dual.c
@@ -1329,7 +1329,7 @@ static bool fork_domain_child(struct winbindd_child *child)
close(fdpair[0]);
- nread = read(fdpair[1], &status, sizeof(status));
+ nread = sys_read(fdpair[1], &status, sizeof(status));
if (nread != sizeof(status)) {
DEBUG(1, ("fork_domain_child: Could not read child status: "
"nread=%d, error=%s\n", (int)nread,