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:
fa994de
)
Improved error message.
author
Martin Pool
<mbp@samba.org>
Mon, 8 Jan 2001 03:39:53 +0000
(
03:39
+0000)
committer
Martin Pool
<mbp@samba.org>
Mon, 8 Jan 2001 03:39:53 +0000
(
03:39
+0000)
io.c
patch
|
blob
|
blame
|
history
diff --git
a/io.c
b/io.c
index
3999688
..
eca02fa
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-1,6
+1,6
@@
/* -*- c-file-style: "linux" -*-
/* -*- c-file-style: "linux" -*-
- Copyright (C) 1996-200
0
by Andrew Tridgell
+ Copyright (C) 1996-200
1
by Andrew Tridgell
Copyright (C) Paul Mackerras 1996
This program is free software; you can redistribute it and/or modify
Copyright (C) Paul Mackerras 1996
This program is free software; you can redistribute it and/or modify
@@
-60,7
+60,7
@@
static void check_timeout(void)
if (last_io && io_timeout && (t-last_io) >= io_timeout) {
if (!am_server && !am_daemon) {
if (last_io && io_timeout && (t-last_io) >= io_timeout) {
if (!am_server && !am_daemon) {
- rprintf(FERROR,"io timeout after %d second - exiting\n",
+ rprintf(FERROR,"io timeout after %d second
s
- exiting\n",
(int)(t-last_io));
}
exit_cleanup(RERR_TIMEOUT);
(int)(t-last_io));
}
exit_cleanup(RERR_TIMEOUT);
@@
-384,7
+384,10
@@
static void writefd_unbuffered(int fd,char *buf,int len)
}
if (ret <= 0) {
}
if (ret <= 0) {
- rprintf(FERROR,"erroring writing %d bytes - exiting\n", len);
+ rprintf(FERROR,
+ "error writing %d unbuffered bytes"
+ " - exiting: %s\n", len,
+ strerror(errno));
exit_cleanup(RERR_STREAMIO);
}
exit_cleanup(RERR_STREAMIO);
}