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
e1b3d5c4
Commit
e1b3d5c4
authored
Jun 18, 1998
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set network file descriptors non-blocking before starting main rsync
algorithm.
parent
f7b93778
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
main.c
main.c
+14
-0
No files found.
main.c
View file @
e1b3d5c4
...
...
@@ -250,6 +250,10 @@ static void do_server_sender(int f_in, int f_out, int argc,char *argv[])
exit_cleanup
(
0
);
}
set_nonblocking
(
f_out
);
if
(
f_in
!=
f_out
)
set_nonblocking
(
f_in
);
send_files
(
flist
,
f_out
,
f_in
);
report
(
f_out
);
io_flush
();
...
...
@@ -278,6 +282,8 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
close
(
recv_pipe
[
0
]);
if
(
f_in
!=
f_out
)
close
(
f_out
);
set_nonblocking
(
f_in
);
recv_files
(
f_in
,
flist
,
local_name
,
recv_pipe
[
1
]);
report
(
f_in
);
...
...
@@ -291,6 +297,9 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
close
(
recv_pipe
[
1
]);
io_close_input
(
f_in
);
if
(
f_in
!=
f_out
)
close
(
f_in
);
set_nonblocking
(
f_out
);
generate_files
(
f_out
,
flist
,
local_name
,
recv_pipe
[
0
]);
io_flush
();
...
...
@@ -381,6 +390,11 @@ int client_run(int f_in, int f_out, int pid, int argc, char *argv[])
flist
=
send_file_list
(
f_out
,
argc
,
argv
);
if
(
verbose
>
3
)
rprintf
(
FINFO
,
"file list sent
\n
"
);
set_nonblocking
(
f_out
);
if
(
f_in
!=
f_out
)
set_nonblocking
(
f_in
);
send_files
(
flist
,
f_out
,
f_in
);
if
(
pid
!=
-
1
)
{
if
(
verbose
>
3
)
...
...
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