From da7b82981b3c5acf28024a5b61c954b99ddc590f Mon Sep 17 00:00:00 2001 From: Randolph Chung Date: Thu, 7 Dec 2000 03:55:35 +0000 Subject: [PATCH] Write progress meter to stderr instead of stdout --- Makefile | 2 +- networking/wget.c | 4 ++-- wget.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 345c3c35f..5faac87d6 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ DOSTATIC = false # Leave this set to `false' for production use. # eg: `make DODEBUG=true tests' # Do not enable this for production builds... -DODEBUG = false +DODEBUG = true # This enables compiling with dmalloc ( http://dmalloc.com/ ) # which is an excellent public domain mem leak and malloc problem diff --git a/networking/wget.c b/networking/wget.c index 4a5934883..b43bbad62 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -424,7 +424,7 @@ progressmeter(int flag) snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%02d:%02d ETA", i / 60, i % 60); } - write(fileno(stdout), buf, strlen(buf)); + write(fileno(stderr), buf, strlen(buf)); if (flag == -1) { struct sigaction sa; @@ -475,7 +475,7 @@ progressmeter(int flag) * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: wget.c,v 1.8 2000/12/07 03:53:47 tausq Exp $ + * $Id: wget.c,v 1.9 2000/12/07 03:55:35 tausq Exp $ */ diff --git a/wget.c b/wget.c index 4a5934883..b43bbad62 100644 --- a/wget.c +++ b/wget.c @@ -424,7 +424,7 @@ progressmeter(int flag) snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%02d:%02d ETA", i / 60, i % 60); } - write(fileno(stdout), buf, strlen(buf)); + write(fileno(stderr), buf, strlen(buf)); if (flag == -1) { struct sigaction sa; @@ -475,7 +475,7 @@ progressmeter(int flag) * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: wget.c,v 1.8 2000/12/07 03:53:47 tausq Exp $ + * $Id: wget.c,v 1.9 2000/12/07 03:55:35 tausq Exp $ */ -- 2.25.1