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
34937987
Commit
34937987
authored
Jan 26, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make use of the new sockopts variable.
parent
831f06a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
clientserver.c
clientserver.c
+7
-1
No files found.
clientserver.c
View file @
34937987
...
...
@@ -45,6 +45,7 @@ extern int orig_umask;
extern
int
no_detach
;
extern
int
default_af_hint
;
extern
char
*
bind_address
;
extern
char
*
sockopts
;
extern
struct
filter_list_struct
server_filter_list
;
extern
char
*
config_file
;
extern
char
*
files_from
;
...
...
@@ -98,6 +99,8 @@ int start_socket_client(char *host, char *path, int argc, char *argv[])
if
(
fd
==
-
1
)
exit_cleanup
(
RERR_SOCKETIO
);
set_socket_options
(
fd
,
sockopts
);
ret
=
start_inband_exchange
(
user
,
path
,
fd
,
fd
,
argc
);
return
ret
?
ret
:
client_run
(
fd
,
fd
,
-
1
,
argc
,
argv
);
...
...
@@ -718,7 +721,10 @@ int start_daemon(int f_in, int f_out)
if
(
!
am_server
)
{
set_socket_options
(
f_in
,
"SO_KEEPALIVE"
);
set_socket_options
(
f_in
,
lp_socket_options
());
if
(
sockopts
)
set_socket_options
(
f_in
,
sockopts
);
else
set_socket_options
(
f_in
,
lp_socket_options
());
set_nonblocking
(
f_in
);
}
...
...
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