Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
98b332ed
Commit
98b332ed
authored
Apr 09, 2002
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo.
Show io phase name in error message.
parent
e681e820
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
io.c
io.c
+12
-3
No files found.
io.c
View file @
98b332ed
...
...
@@ -52,6 +52,15 @@ extern int io_timeout;
extern
struct
stats
stats
;
/**
* The connection might be dropped at some point; perhaps because the
* remote instance crashed. Just giving the offset on the stream is
* not very helpful. So instead we try to make io_phase_name point to
* something useful.
**/
const
char
*
io_phase_name
=
"unknown"
;
/** Ignore EOF errors while reading a module listing if the remote
version is 24 or less. */
int
kludge_around_eof
=
False
;
...
...
@@ -413,7 +422,7 @@ static void sleep_for_bwlimit(int bytes_written)
tv
.
tv_sec
=
tv
.
tv_usec
/
1000000
;
tv
.
tv_usec
=
tv
.
tv_usec
%
1000000
;
select
(
0
,
NULL
,
NULL
,
NULL
,
tv
);
select
(
0
,
NULL
,
NULL
,
NULL
,
&
tv
);
}
...
...
@@ -491,8 +500,8 @@ static void writefd_unbuffered(int fd,char *buf,size_t len)
* across the stream */
io_multiplexing_close
();
rprintf
(
FERROR
,
RSYNC_NAME
": writefd_unbuffered failed to write %ld bytes: %s
\n
"
,
(
long
)
len
,
": writefd_unbuffered failed to write %ld bytes:
phase
\"
%s
\"
:
%s
\n
"
,
(
long
)
len
,
io_phase_name
,
strerror
(
errno
));
exit_cleanup
(
RERR_STREAMIO
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment