diff options
-rw-r--r-- | src/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c index 9348dc00..649d2b1c 100644 --- a/src/utils.c +++ b/src/utils.c @@ -53,6 +53,7 @@ void progress_bar(int val, int total, const char *text) const int width = 50; if ( !isatty(STDERR_FILENO) ) return; + if ( tcgetpgrp(STDERR_FILENO) != getpgrp() ) return; frac = (double)val/total; n = (int)(frac*width); |