From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 36941 invoked by alias); 27 Jul 2017 16:01:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 36771 invoked by uid 89); 27 Jul 2017 16:01:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=oct, Oct, D*pl, H*c:application X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Jul 2017 16:01:14 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B152CECFA7 for ; Thu, 27 Jul 2017 16:01:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B152CECFA7 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=eblake@redhat.com Received: from [10.10.120.22] (ovpn-120-22.rdu2.redhat.com [10.10.120.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6AEBF811EB for ; Thu, 27 Jul 2017 16:01:12 +0000 (UTC) Subject: Re: change in wget logfile behavior To: cygwin@cygwin.com References: From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <0021c882-f9d5-5c2e-73ab-9b4d1e2881b7@redhat.com> Date: Thu, 27 Jul 2017 21:19:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6F3rAfNAc23GUPx1kiPKsDeDqJRjntbPe" X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00390.txt.bz2 --6F3rAfNAc23GUPx1kiPKsDeDqJRjntbPe Content-Type: multipart/mixed; boundary="v5A6VCQvodfUx1cHdpvRpPB5AF49QO8kF"; protected-headers="v1" From: Eric Blake To: cygwin@cygwin.com Message-ID: <0021c882-f9d5-5c2e-73ab-9b4d1e2881b7@redhat.com> Subject: Re: change in wget logfile behavior References: In-Reply-To: --v5A6VCQvodfUx1cHdpvRpPB5AF49QO8kF Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Content-length: 1532 [revisiting this thread] On 03/29/2017 08:45 PM, Eric Blake wrote: > On 03/29/2017 08:30 PM, Andrew Schulman wrote: >> Recently, I guess since wget was upgraded to 1.19, whenever I run wget I= get a >> bonus message on the console: >> >> Redirecting output to =E2=80=98wget-log=E2=80=99. >> >> And sure enough, wget creates the file ~/wget-log, which is usually empt= y. I didn't see anything in NEWS, but the git log includes: commit dd5c549f6af8e1143e1a6ef66725eea4bcd9ad50 Author: losgrandes Date: Fri Oct 21 17:12:58 2016 +0200 Fixes #45790: wget prints it's progress even when background * src/log.c: Use tcgetpgrp(STDIN_FILENO) !=3D getpgrp() to determine when to print to STD* or logfile. Deprecate log_request_redirect_output function. Use different file handles for STD* and logfile, to easily switch between them when changing fg/bg. I didn't do anything special for the just-built 1.19.1-2 released today, but if you are still seeing the issue, is it only when you run 'wget ...&' in the background, or always? Could it be an issue with cygwin's tcgetpgrp(STDIN_FILENO)? >> >> This behavior is annoying, and new. It can be worked around by putting=20 >> >> logfile =3D /dev/stderr >> >> in /etc/wgetrc. I'm afraid that doing that may violate the intention of what was supposed to be a fix. You may also want to raise the issue upstream. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org --v5A6VCQvodfUx1cHdpvRpPB5AF49QO8kF-- --6F3rAfNAc23GUPx1kiPKsDeDqJRjntbPe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 619 -----BEGIN PGP SIGNATURE----- Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAll6DkcACgkQp6FrSiUn Q2rhfAf/ZKyWKK0VEdTgEqttcs+LwiAqqDdSJhLFPMDHS87sNtzjTIthQpkna7S9 Rgy7JcDoH+co2ibRViYF4XdkMJIkrK7ozBoUY5Zw1yRanKudrAyUlpqxpFBC7HUT fgmpVHcywHmZvV2kL7RPO12Cvj8dtq19eLqkCIWb///sX2VlipfUjB09hxzyn35x Fllw9AnkMEtKFEaeyF+gl85TTfeJipFKO487zyDp+huFDw6mtf8VfABctcGzN8IX uBmU//Lv0+9lRPdalmFJgTKAUsY1xF7OE1qj/QaD3+T5YHw4FSPRHuyer6lYxnmF EHo0veutpIf71IIaxDSV53lqcGmdxA== =yGjB -----END PGP SIGNATURE----- --6F3rAfNAc23GUPx1kiPKsDeDqJRjntbPe--