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
9981c27e
Commit
9981c27e
authored
Feb 20, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle the new MSG_SUCCESS message for both the generator and the
sender.
parent
fe960187
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
io.c
io.c
+18
-0
No files found.
io.c
View file @
9981c27e
...
...
@@ -256,6 +256,14 @@ static void read_msg_fd(void)
read_loop
(
fd
,
buf
,
len
);
io_multiplex_write
(
MSG_DELETED
,
buf
,
len
);
break
;
case
MSG_SUCCESS
:
if
(
len
!=
4
||
!
am_generator
)
{
rprintf
(
FERROR
,
"invalid message %d:%d
\n
"
,
tag
,
len
);
exit_cleanup
(
RERR_STREAMIO
);
}
read_loop
(
fd
,
buf
,
len
);
io_multiplex_write
(
MSG_SUCCESS
,
buf
,
len
);
break
;
case
MSG_INFO
:
case
MSG_ERROR
:
case
MSG_LOG
:
...
...
@@ -704,6 +712,16 @@ static int readfd_unbuffered(int fd, char *buf, size_t len)
log_delete
(
line
,
S_IFREG
);
remaining
=
0
;
break
;
case
MSG_SUCCESS
:
if
(
remaining
!=
4
)
{
rprintf
(
FERROR
,
"invalid multi-message %d:%ld
\n
"
,
tag
,
(
long
)
remaining
);
exit_cleanup
(
RERR_STREAMIO
);
}
read_loop
(
fd
,
line
,
remaining
);
successful_send
(
IVAL
(
line
,
0
));
remaining
=
0
;
break
;
case
MSG_INFO
:
case
MSG_ERROR
:
if
(
remaining
>=
sizeof
line
)
{
...
...
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