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
07b7c86c
Commit
07b7c86c
authored
Nov 23, 1999
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't write more than PIPE_BUF bytes in any one write() in io.c
this makes sure that the write never blocks.
parent
1f5c6343
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
io.c
io.c
+5
-2
rsync.h
rsync.h
+4
-0
No files found.
io.c
View file @
07b7c86c
...
...
@@ -361,8 +361,11 @@ static void writefd_unbuffered(int fd,char *buf,int len)
}
if
(
FD_ISSET
(
fd
,
&
w_fds
))
{
int
n
=
len
-
total
;
int
ret
=
write
(
fd
,
buf
+
total
,
n
?
n
:
1
);
int
ret
,
n
=
len
-
total
;
if
(
n
>
PIPE_BUF
)
n
=
PIPE_BUF
;
ret
=
write
(
fd
,
buf
+
total
,
n
?
n
:
1
);
if
(
ret
==
-
1
&&
errno
==
EINTR
)
{
continue
;
...
...
rsync.h
View file @
07b7c86c
...
...
@@ -285,6 +285,10 @@
#define MAXPATHLEN 1024
#endif
#ifndef PIPE_BUF
#define PIPE_BUF 512
#endif
#ifndef INADDR_NONE
#define INADDR_NONE 0xffffffff
#endif
...
...
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