summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-10-15 21:33:16 +0000
committerJeremy Allison <jra@samba.org>2002-10-15 21:33:16 +0000
commit400864a7b380c890156b1303f8327b9019add60a (patch)
treebd5d41c4233f0167967897899941d1b0206c34d2 /source3
parentebc7fd0a3c3cf7f199cf89f82f1457ddd2cf8686 (diff)
downloadsamba-400864a7b380c890156b1303f8327b9019add60a.tar.gz
samba-400864a7b380c890156b1303f8327b9019add60a.tar.bz2
samba-400864a7b380c890156b1303f8327b9019add60a.zip
Change to use sys_read/sys_write.
Jeremy. (This used to be commit 7d0dc36df0e3ca451c1ab660aa08e0d021ca89f0)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c
index bb4a1b78ec..d394a57837 100644
--- a/source3/nsswitch/winbindd.c
+++ b/source3/nsswitch/winbindd.c
@@ -401,13 +401,9 @@ void winbind_client_read(struct winbindd_cli_state *state)
/* Read data */
- do {
-
- n = read(state->sock, state->read_buf_len +
- (char *)&state->request,
- sizeof(state->request) - state->read_buf_len);
-
- } while (n == -1 && errno == EINTR);
+ n = sys_read(state->sock, state->read_buf_len +
+ (char *)&state->request,
+ sizeof(state->request) - state->read_buf_len);
DEBUG(10,("client_read: read %d bytes. Need %d more for a full request.\n", n, sizeof(state->request) - n - state->read_buf_len ));
@@ -453,9 +449,7 @@ static void client_write(struct winbindd_cli_state *state)
state->write_buf_len;
}
- do {
- num_written = write(state->sock, data, state->write_buf_len);
- } while (num_written == -1 && errno == EINTR);
+ num_written = sys_write(state->sock, data, state->write_buf_len);
DEBUG(10,("client_write: wrote %d bytes.\n", num_written ));