Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faf1108
)
No need to conditionally-compile EINTR code -- no other files do this.
author
Wayne Davison
<wayned@samba.org>
Fri, 2 Jan 2004 07:31:02 +0000
(07:31 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 2 Jan 2004 07:31:02 +0000
(07:31 +0000)
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
4ba6caa
..
ddb150a
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-197,12
+197,10
@@
static int full_write(int desc, char *ptr, size_t len)
total_written = 0;
while (len > 0) {
- int written = write
(desc, ptr, len);
+ int written = write(desc, ptr, len);
if (written < 0) {
-#ifdef EINTR
if (errno == EINTR)
continue;
-#endif
return written;
}
total_written += written;
@@
-231,13
+229,9
@@
static int safe_read(int desc, char *ptr, size_t len)
if (len == 0)
return len;
-#ifdef EINTR
do {
n_chars = read(desc, ptr, len);
} while (n_chars < 0 && errno == EINTR);
-#else
- n_chars = read(desc, ptr, len);
-#endif
return n_chars;
}