summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-10-15 21:33:20 +0000
committerJeremy Allison <jra@samba.org>2002-10-15 21:33:20 +0000
commit2e86b6bcc827cf803734f0e6c2620ade4df1d098 (patch)
tree8673146b0d7bf2edd0ae6febee39a6a51f95014f /source3/nsswitch
parent598ebaa2b3bb0ade6e07e0f520a966526142cb19 (diff)
downloadsamba-2e86b6bcc827cf803734f0e6c2620ade4df1d098.tar.gz
samba-2e86b6bcc827cf803734f0e6c2620ade4df1d098.tar.bz2
samba-2e86b6bcc827cf803734f0e6c2620ade4df1d098.zip
Change to use sys_read/sys_write.
Jeremy. (This used to be commit 042890056d5d4128eaaca346e7898ccda860dbe2)
Diffstat (limited to 'source3/nsswitch')
-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 ));