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
c5130bc1
Commit
c5130bc1
authored
Dec 15, 2009
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the timeout messages.
parent
f8e1fa62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
io.c
io.c
+4
-5
No files found.
io.c
View file @
c5130bc1
...
...
@@ -38,7 +38,6 @@ extern int bwlimit;
extern
size_t
bwlimit_writemax
;
extern
int
io_timeout
;
extern
int
am_server
;
extern
int
am_daemon
;
extern
int
am_sender
;
extern
int
am_generator
;
extern
int
msgs2stderr
;
...
...
@@ -168,10 +167,10 @@ static void check_timeout(void)
t
=
time
(
NULL
);
if
(
t
-
last_io_in
>=
io_timeout
)
{
if
(
!
am_server
&&
!
am_daemon
)
{
rprintf
(
FERROR
,
"io timeout after %d seconds -- exiting
\n
"
,
(
int
)(
t
-
last_io_in
));
}
if
(
am_server
)
msgs2stderr
=
1
;
rprintf
(
FERROR
,
"[%s] io timeout after %d seconds -- exiting
\n
"
,
who_am_i
(),
(
int
)(
t
-
last_io_in
));
exit_cleanup
(
RERR_TIMEOUT
);
}
}
...
...
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