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
47cffb77
Commit
47cffb77
authored
May 26, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle EINTR in a couple places where we handle the --file-from I/O.
parent
565a340b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
io.c
io.c
+8
-6
No files found.
io.c
View file @
47cffb77
...
...
@@ -677,7 +677,7 @@ static int read_timeout(int fd, char *buf, size_t len)
io_filesfrom_bp
=
io_filesfrom_buf
;
else
io_filesfrom_bp
+=
l
;
}
else
{
}
else
if
(
errno
!=
EINTR
)
{
/* XXX should we complain? */
io_filesfrom_f_out
=
-
1
;
}
...
...
@@ -688,11 +688,13 @@ static int read_timeout(int fd, char *buf, size_t len)
io_filesfrom_buf
,
sizeof
io_filesfrom_buf
);
if
(
l
<=
0
)
{
/* Send end-of-file marker */
io_filesfrom_buf
[
0
]
=
'\0'
;
io_filesfrom_buf
[
1
]
=
'\0'
;
io_filesfrom_buflen
=
io_filesfrom_lastchar
?
2
:
1
;
io_filesfrom_f_in
=
-
1
;
if
(
l
==
0
||
errno
!=
EINTR
)
{
/* Send end-of-file marker */
io_filesfrom_buf
[
0
]
=
'\0'
;
io_filesfrom_buf
[
1
]
=
'\0'
;
io_filesfrom_buflen
=
io_filesfrom_lastchar
?
2
:
1
;
io_filesfrom_f_in
=
-
1
;
}
}
else
{
if
(
!
eol_nulls
)
{
char
*
s
=
io_filesfrom_buf
+
l
;
...
...
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