summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRandolph Chung <tausq@debian.org>2000-12-07 03:55:35 +0000
committerRandolph Chung <tausq@debian.org>2000-12-07 03:55:35 +0000
commitda7b82981b3c5acf28024a5b61c954b99ddc590f (patch)
tree7e042071b0fbaecaedc292539704eb741fac0f50
parent02553a2a188d3fe00d2c2efe48109eb3d4aae4b3 (diff)
Write progress meter to stderr instead of stdout
-rw-r--r--Makefile2
-rw-r--r--networking/wget.c4
-rw-r--r--wget.c4
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 $
*/