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
d6a3e37b
Commit
d6a3e37b
authored
Jan 25, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If rsync is put in the background, output fewer progress-report
lines.
parent
8261047b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
progress.c
progress.c
+20
-0
No files found.
progress.c
View file @
d6a3e37b
...
...
@@ -115,10 +115,24 @@ void end_progress(OFF_T size)
void
show_progress
(
OFF_T
ofs
,
OFF_T
size
)
{
struct
timeval
now
;
#if HAVE_GETPGRP && HAVE_TCGETPGRP
static
pid_t
pgrp
=
-
1
;
pid_t
tc_pgrp
;
#endif
if
(
am_server
)
return
;
#if HAVE_GETPGRP && HAVE_TCGETPGRP
if
(
pgrp
==
-
1
)
{
# if GETPGRP_VOID
pgrp
=
getpgrp
();
# else
pgrp
=
getpgrp
(
0
);
# endif
}
#endif
gettimeofday
(
&
now
,
NULL
);
if
(
!
ph_start
.
time
.
tv_sec
)
{
...
...
@@ -150,5 +164,11 @@ void show_progress(OFF_T ofs, OFF_T size)
ph_list
[
newest_hpos
].
ofs
=
ofs
;
}
#if HAVE_GETPGRP && HAVE_TCGETPGRP
tc_pgrp
=
tcgetpgrp
(
STDOUT_FILENO
);
if
(
tc_pgrp
!=
pgrp
&&
tc_pgrp
!=
-
1
)
return
;
#endif
rprint_progress
(
ofs
,
size
,
&
now
,
False
);
}
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