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
b695f242
Commit
b695f242
authored
Jan 27, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the am_generator flag. Use who_am_i().
parent
c3e5e585
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
main.c
main.c
+5
-3
No files found.
main.c
View file @
b695f242
...
@@ -27,6 +27,7 @@ extern struct stats stats;
...
@@ -27,6 +27,7 @@ extern struct stats stats;
extern
int
am_root
;
extern
int
am_root
;
extern
int
am_server
;
extern
int
am_server
;
extern
int
am_sender
;
extern
int
am_sender
;
extern
int
am_generator
;
extern
int
am_daemon
;
extern
int
am_daemon
;
extern
int
verbose
;
extern
int
verbose
;
extern
int
blocking_io
;
extern
int
blocking_io
;
...
@@ -57,6 +58,7 @@ extern char *rsync_path;
...
@@ -57,6 +58,7 @@ extern char *rsync_path;
extern
char
*
shell_cmd
;
extern
char
*
shell_cmd
;
extern
struct
file_list
*
batch_flist
;
extern
struct
file_list
*
batch_flist
;
/* there's probably never more than at most 2 outstanding child processes,
/* there's probably never more than at most 2 outstanding child processes,
* but set it higher just in case.
* but set it higher just in case.
*/
*/
...
@@ -198,7 +200,7 @@ static void show_malloc_stats(void)
...
@@ -198,7 +200,7 @@ static void show_malloc_stats(void)
getpid
(),
getpid
(),
am_server
?
"server "
:
""
,
am_server
?
"server "
:
""
,
am_daemon
?
"daemon "
:
""
,
am_daemon
?
"daemon "
:
""
,
am_sender
?
"sender"
:
"receiver"
);
who_am_i
()
);
rprintf
(
FINFO
,
" arena: %10d (bytes from sbrk)
\n
"
,
mi
.
arena
);
rprintf
(
FINFO
,
" arena: %10d (bytes from sbrk)
\n
"
,
mi
.
arena
);
rprintf
(
FINFO
,
" ordblks: %10d (chunks not in use)
\n
"
,
mi
.
ordblks
);
rprintf
(
FINFO
,
" ordblks: %10d (chunks not in use)
\n
"
,
mi
.
ordblks
);
rprintf
(
FINFO
,
" smblks: %10d
\n
"
,
mi
.
smblks
);
rprintf
(
FINFO
,
" smblks: %10d
\n
"
,
mi
.
smblks
);
...
@@ -305,8 +307,6 @@ oom:
...
@@ -305,8 +307,6 @@ oom:
}
}
static
char
*
get_local_name
(
struct
file_list
*
flist
,
char
*
name
)
static
char
*
get_local_name
(
struct
file_list
*
flist
,
char
*
name
)
{
{
STRUCT_STAT
st
;
STRUCT_STAT
st
;
...
@@ -455,6 +455,8 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
...
@@ -455,6 +455,8 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
msleep
(
20
);
msleep
(
20
);
}
}
am_generator
=
1
;
close
(
error_pipe
[
1
]);
close
(
error_pipe
[
1
]);
if
(
f_in
!=
f_out
)
close
(
f_in
);
if
(
f_in
!=
f_out
)
close
(
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