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
1f35babc
Commit
1f35babc
authored
Feb 21, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- For win32: made --no-detach the default for daemon mode.
- Added --detach (a --daemon option).
parent
80ffc3de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
options.c
options.c
+9
-2
No files found.
options.c
View file @
1f35babc
...
...
@@ -116,7 +116,12 @@ int default_af_hint = AF_INET; /* Must use IPv4 */
/** Do not go into the background when run as --daemon. Good
* for debugging and required for running as a service on W32,
* or under Unix process-monitors. **/
int
no_detach
=
0
;
int
no_detach
#if defined _WIN32 || defined __WIN32__
=
1
;
#else
=
0
;
#endif
int
write_batch
=
0
;
int
read_batch
=
0
;
...
...
@@ -456,6 +461,7 @@ static struct poptOption long_options[] = {
{
"address"
,
0
,
POPT_ARG_STRING
,
0
,
OPT_DAEMON
,
0
,
0
},
{
"config"
,
0
,
POPT_ARG_STRING
,
0
,
OPT_DAEMON
,
0
,
0
},
{
"daemon"
,
0
,
POPT_ARG_NONE
,
0
,
OPT_DAEMON
,
0
,
0
},
{
"detach"
,
0
,
POPT_ARG_NONE
,
0
,
OPT_DAEMON
,
0
,
0
},
{
"no-detach"
,
0
,
POPT_ARG_NONE
,
0
,
OPT_DAEMON
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
}
};
...
...
@@ -491,7 +497,8 @@ static struct poptOption long_daemon_options[] = {
{
"ipv4"
,
'4'
,
POPT_ARG_VAL
,
&
default_af_hint
,
AF_INET
,
0
,
0
},
{
"ipv6"
,
'6'
,
POPT_ARG_VAL
,
&
default_af_hint
,
AF_INET6
,
0
,
0
},
#endif
{
"no-detach"
,
0
,
POPT_ARG_NONE
,
&
no_detach
,
0
,
0
,
0
},
{
"detach"
,
0
,
POPT_ARG_VAL
,
&
no_detach
,
0
,
0
,
0
},
{
"no-detach"
,
0
,
POPT_ARG_VAL
,
&
no_detach
,
1
,
0
,
0
},
{
"port"
,
0
,
POPT_ARG_INT
,
&
rsync_port
,
0
,
0
,
0
},
{
"protocol"
,
0
,
POPT_ARG_INT
,
&
protocol_version
,
0
,
0
,
0
},
{
"server"
,
0
,
POPT_ARG_NONE
,
&
am_server
,
0
,
0
,
0
},
...
...
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