From 3ea0beec6fabe67e7789d4164886e035fed15a6d Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Mon, 21 Sep 2015 19:41:38 +0530 Subject: [PATCH] Revert "Disable progress bar when wget is backgrounded (trivial patch)" This reverts commit e6247325633d7d0007906f88d573a3bfa37307a7. --- src/progress.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/progress.c b/src/progress.c index 2c7bd0f9..61b635df 100644 --- a/src/progress.c +++ b/src/progress.c @@ -1194,12 +1194,10 @@ create_image (struct bar_progress *bp, double dl_total_time, bool done) static void display_image (char *buf) { - if (tcgetpgrp (fileno (stderr)) == getpid ()) { - bool old = log_set_save_context (false); - logputs (LOG_PROGRESS, "\r"); - logputs (LOG_PROGRESS, buf); - log_set_save_context (old); - } + bool old = log_set_save_context (false); + logputs (LOG_PROGRESS, "\r"); + logputs (LOG_PROGRESS, buf); + log_set_save_context (old); } static void