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
574c2500
Commit
574c2500
authored
Feb 26, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If kluge_around_eof is < 0, we go into an msleep() loop instead
of exiting.
parent
8dad7fc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
io.c
io.c
+12
-8
No files found.
io.c
View file @
574c2500
...
...
@@ -76,11 +76,11 @@ int batch_gen_fd = -1;
const
char
*
io_write_phase
=
phase_unknown
;
const
char
*
io_read_phase
=
phase_unknown
;
/* Ignore
EOF errors while reading a module listing if the remot
e
*
version is 24 or less. Also used by the receiver when it is
*
reading a potential end-of-transfer keep-alive message that
*
may never come
. */
int
klu
dge_around_eof
=
False
;
/* Ignore
an EOF error if non-zero. We exit if the value is 1 (used whil
e
*
reading a module listing if the remote version is 24 or less) or go into a
*
sleep loop if the value is 2 (used by the receiver when it is reading a
*
potential end-of-transfer keep-alive message that may never come)
. */
int
klu
ge_around_eof
=
0
;
int
msg_fd_in
=
-
1
;
int
msg_fd_out
=
-
1
;
...
...
@@ -372,12 +372,16 @@ void io_set_filesfrom_fds(int f_in, int f_out)
* rsync <2.4.6 sending a list of modules on a server, since the list
* is terminated by closing the socket. So, for the section of the
* program where that is a problem (start_socket_client),
* klu
d
ge_around_eof is True and we just exit.
* kluge_around_eof is True and we just exit.
*/
static
void
whine_about_eof
(
int
fd
)
{
if
(
kludge_around_eof
&&
fd
==
sock_f_in
)
exit_cleanup
(
0
);
if
(
kluge_around_eof
&&
fd
==
sock_f_in
)
{
if
(
kluge_around_eof
>
0
)
exit_cleanup
(
0
);
while
(
1
)
msleep
(
20
);
}
rprintf
(
FERROR
,
RSYNC_NAME
": connection unexpectedly closed "
"(%.0f bytes received so far) [%s]
\n
"
,
...
...
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